Skip to content

Commit

Permalink
Immediately destroy non-acquired connections when invalidating
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Feb 3, 2016
1 parent eb3541e commit ea27a8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/qgsconnectionpool.h
Expand Up @@ -156,8 +156,9 @@ class QgsConnectionPoolGroup
connMutex.lock();
Q_FOREACH ( Item i, conns )
{
qgsConnectionPool_InvalidateConnection( i.c );
qgsConnectionPool_ConnectionDestroy( i.c );
}
conns.clear();
Q_FOREACH ( T c, acquiredConns )
qgsConnectionPool_InvalidateConnection( c );
connMutex.unlock();
Expand Down

0 comments on commit ea27a8f

Please sign in to comment.