mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-24 17:30:44 +02:00
PostgresSQL: make sure session is freed when disconnecting even if its status is not OK.
This commit is contained in:
@@ -143,7 +143,7 @@ void SessionHandle::disconnect()
|
|||||||
{
|
{
|
||||||
Poco::FastMutex::ScopedLock mutexLocker(_sessionMutex);
|
Poco::FastMutex::ScopedLock mutexLocker(_sessionMutex);
|
||||||
|
|
||||||
if (isConnectedNoLock())
|
if (_pConnection)
|
||||||
{
|
{
|
||||||
PQfinish(_pConnection);
|
PQfinish(_pConnection);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user