Skip to content

Commit d665750

Browse files
committed
Merge branch 'main' of github.com:cdoolin/asyncodbc into cdoolin-main
2 parents b0d0eb2 + 7455cb4 commit d665750

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

asyncodbc/pool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ async def release(self, conn):
192192
self._terminated.remove(conn)
193193
return
194194
self._used.remove(conn)
195-
if conn.connected:
195+
if not conn.closed:
196196
if self._closing:
197197
await conn.close()
198198
else:

0 commit comments

Comments
 (0)