Skip to content

Commit

Permalink
fix file_reader stuck in while loop...
Browse files Browse the repository at this point in the history
when there is an exception in other coroutines
  • Loading branch information
rlindsberg authored and terrycain committed Sep 26, 2023
1 parent bbd5c23 commit 2aee647
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aioboto3/s3/inject.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ async def file_reader() -> None:
nonlocal exception
part = 0
eof = False
while not eof:
while not exception and not eof:
part += 1
multipart_payload = bytearray()
loop_counter = 0
Expand Down

0 comments on commit 2aee647

Please sign in to comment.