Fix potential race condition.

This commit is contained in:
Jordan Bancino 2023-06-09 19:27:49 +00:00
parent a177c55c26
commit eb3732a2cd
1 changed files with 1 additions and 1 deletions

View File

@ -683,8 +683,8 @@ HttpServerEventThread(void *args)
if (!fp)
{
pthread_mutex_unlock(&server->connQueueMutex);
close(connFd);
pthread_mutex_unlock(&server->connQueueMutex);
continue;
}