set connection to closed on safeEndConnection

This commit is contained in:
overflowerror 2021-04-29 15:31:50 +02:00
parent d183fdb3ad
commit 2deb9e53c3

View file

@ -245,6 +245,7 @@ void safeEndConnection(struct connection* connection, bool force) {
close(connection->writefd);
pthread_mutex_lock(&(connection->lock));
connection->state = CLOSED;
connection->inUse--;
pthread_mutex_unlock(&(connection->lock));
}