Skip to content

Commit a47ff66

Browse files
authored
reopen session if closed (#261)
Co-authored-by: Saimon Michelson <saimon.michelson@gmail.com>
1 parent bbafb6d commit a47ff66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cterasdk/clients/async_requests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def __init__(self, settings):
2323

2424
@property
2525
def session(self):
26-
if self._session is None:
26+
if self.closed:
2727
self._session = aiohttp.ClientSession(trace_configs=[async_tracers.default()], **session_parameters(self._settings))
2828
return self._session
2929

0 commit comments

Comments
 (0)