File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ Thin Mode Changes
2828#) Added support for the ``FAILOVER `` clause in full connect descriptors.
2929#) A more meaningful error is raised when the wrong type of data is passed to
3030 :meth: `LOB.write() `.
31+ #) Internal change to ensure that all connections in a pool have been closed
32+ gracefully before the pool is closed.
3133#) Internal changes to improve handling of the network protocol between
3234 python-oracledb and Oracle Database.
3335#) Internal changes to improve handling of multiple address and description
Original file line number Diff line number Diff line change @@ -143,8 +143,8 @@ cdef class ThinPoolImpl(BasePoolImpl):
143143 wait = False
144144 self ._drop_conn_impls_helper(conn_impls_to_drop)
145145
146- # if pool has closed, stop thread!
147- if not self ._open:
146+ # if pool has closed and no connections to drop , stop thread!
147+ if not self ._open and not self ._conn_impls_to_drop :
148148 break
149149
150150 # otherwise, if nothing needed to be done, wait for notification
You can’t perform that action at this time.
0 commit comments