Skip to content
Permalink
Browse files

Immediately destroy non-acquired connections when invalidating

  • Loading branch information
manisandro committed Feb 3, 2016
1 parent eb3541e commit ea27a8f2c60a7661748a3020063d18e59c354a8f
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/core/qgsconnectionpool.h
@@ -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();

0 comments on commit ea27a8f

Please sign in to comment.
You can’t perform that action at this time.