mirror of
https://github.com/sigmasternchen/CFloor
synced 2025-03-15 20:28:56 +00:00
set connection to closed on safeEndConnection
This commit is contained in:
parent
d183fdb3ad
commit
2deb9e53c3
1 changed files with 1 additions and 0 deletions
|
@ -245,6 +245,7 @@ void safeEndConnection(struct connection* connection, bool force) {
|
||||||
close(connection->writefd);
|
close(connection->writefd);
|
||||||
|
|
||||||
pthread_mutex_lock(&(connection->lock));
|
pthread_mutex_lock(&(connection->lock));
|
||||||
|
connection->state = CLOSED;
|
||||||
connection->inUse--;
|
connection->inUse--;
|
||||||
pthread_mutex_unlock(&(connection->lock));
|
pthread_mutex_unlock(&(connection->lock));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue