Remove tracking

preventConflictingFlags
Onder Kalaci 2020-04-08 19:19:00 +02:00
parent b52e72dd48
commit 2325a6c68a
1 changed files with 4 additions and 0 deletions

View File

@ -345,6 +345,10 @@ StartNodeUserDatabaseConnection(uint32 flags, const char *hostname, int32 port,
*/ */
if (!TryToIncrementSharedConnectionCounter(hostname, port)) if (!TryToIncrementSharedConnectionCounter(hostname, port))
{ {
/* do not track the connection anymore */
dlist_delete(&connection->connectionNode);
pfree(connection);
return NULL; return NULL;
} }
} }