mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 18:20:26 +01:00
PostgresSQL: make sure session is freed when disconnecting even if its status is not OK.
This commit is contained in:
parent
0024f3621b
commit
9fcc2fd54d
@ -143,7 +143,7 @@ void SessionHandle::disconnect()
|
||||
{
|
||||
Poco::FastMutex::ScopedLock mutexLocker(_sessionMutex);
|
||||
|
||||
if (isConnectedNoLock())
|
||||
if (_pConnection)
|
||||
{
|
||||
PQfinish(_pConnection);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user