fix: set connection to NULL when finishing it

This will avoid CloseConnections() to try to close an already closed connection.
This commit is contained in:
Christian Kruse
2014-02-18 13:42:49 +01:00
parent c3b58658ad
commit 0dc46f0dc8

View File

@@ -956,6 +956,7 @@ do_failover(void)
/* Close the connection to this server */
PQfinish(myLocalConn);
myLocalConn = NULL;
/*
* determine which one is the best candidate to promote to primary