Skip to content

Commit ea27a8f

Browse files
committedFeb 3, 2016
Immediately destroy non-acquired connections when invalidating
1 parent eb3541e commit ea27a8f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/core/qgsconnectionpool.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,9 @@ class QgsConnectionPoolGroup
156156
connMutex.lock();
157157
Q_FOREACH ( Item i, conns )
158158
{
159-
qgsConnectionPool_InvalidateConnection( i.c );
159+
qgsConnectionPool_ConnectionDestroy( i.c );
160160
}
161+
conns.clear();
161162
Q_FOREACH ( T c, acquiredConns )
162163
qgsConnectionPool_InvalidateConnection( c );
163164
connMutex.unlock();

0 commit comments

Comments
 (0)
Please sign in to comment.