fix: Fix issue causing client session to not close properly while closing SDK. (#81)

This commit is contained in:
Anubhav Dhawan
2024-11-19 13:29:09 +05:30
committed by GitHub
parent 9ed4479428
commit 9d360e16ea

View File

@@ -19,7 +19,7 @@ class ToolboxClient:
Default: None
"""
self._url: str = url
self._should_close_session: bool = session != None
self._should_close_session: bool = session is None
self._session: ClientSession = session or ClientSession()
async def close(self) -> None: