Skip to content

Commit cf349ce

Browse files
authored
Update pools.py
1 parent 0362405 commit cf349ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cx_Oracle_async/pools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def __init__(self , coro : CoroutineType):
2525
super().__init__(coro)
2626

2727
async def __aexit__(self, exc_type, exc, tb):
28-
await self._obj.close()
28+
await self._obj.close(force = True)
2929
self._obj = None
3030

3131

@@ -71,4 +71,4 @@ async def close(self , force: bool = False , interrupt: bool = False):
7171
if interrupt:
7272
await self._loop.run_in_executor(self._thread_pool , _conn.cancel)
7373

74-
return await self._loop.run_in_executor(self._thread_pool , self._pool.close , force)
74+
return await self._loop.run_in_executor(self._thread_pool , self._pool.close , force)

0 commit comments

Comments
 (0)