We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7256deb commit 2a2b3fcCopy full SHA for 2a2b3fc
packages/toolbox-core/src/toolbox_core/sync_client.py
@@ -67,9 +67,8 @@ def close(self):
67
Synchronously closes the underlying client session. Doing so will cause
68
any tools created by this Client to cease to function.
69
"""
70
- if not self.__async_client.__session.closed:
71
- coro = self.__async_client.close()
72
- run_coroutine_threadsafe(coro, self.__loop).result()
+ coro = self.__async_client.close()
+ run_coroutine_threadsafe(coro, self.__loop).result()
73
74
def __del__(self):
75
self.close()
0 commit comments