Fix potential race condition.

This commit is contained in:
Jordan Bancino 2023-06-09 19:27:49 +00:00
parent 96a1d3c3c4
commit 971f099bb6

View file

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