Skip to content

Commit

Permalink
EventIterable: Reconnect on closed response. (#1222)
Browse files Browse the repository at this point in the history
Fixes #1221

Signed-off-by: Bala.FA <bala@minio.io>
  • Loading branch information
balamurugana authored Jul 6, 2022
1 parent bc87dd2 commit 5480478
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minio/datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ def _get_records(self):
def __next__(self):
records = None
while not records:
if not self._response:
if not self._response or self._response.closed:
self._response = self._func()
records = self._get_records()
return records
Expand Down

0 comments on commit 5480478

Please sign in to comment.