We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec456af commit 88ea5d6Copy full SHA for 88ea5d6
ydb/aio/query/pool.py
@@ -215,12 +215,6 @@ async def __aenter__(self):
215
async def __aexit__(self, exc_type, exc_val, exc_tb):
216
await self.stop()
217
218
- def __del__(self):
219
- if self._should_stop.is_set() or self._loop.is_closed():
220
- return
221
-
222
- self._loop.call_soon(self.stop)
223
224
225
class SimpleQuerySessionCheckoutAsync:
226
def __init__(self, pool: QuerySessionPool):
ydb/query/pool.py
@@ -226,9 +226,6 @@ def __enter__(self):
def __exit__(self, exc_type, exc_val, exc_tb):
227
self.stop()
228
229
230
- self.stop()
231
232
233
class SimpleQuerySessionCheckout:
234
def __init__(self, pool: QuerySessionPool, timeout: Optional[float]):
0 commit comments