forked from Telodendria/Telodendria
Fix potential race condition.
This commit is contained in:
parent
96a1d3c3c4
commit
971f099bb6
1 changed files with 1 additions and 1 deletions
|
@ -683,8 +683,8 @@ HttpServerEventThread(void *args)
|
||||||
|
|
||||||
if (!fp)
|
if (!fp)
|
||||||
{
|
{
|
||||||
pthread_mutex_unlock(&server->connQueueMutex);
|
|
||||||
close(connFd);
|
close(connFd);
|
||||||
|
pthread_mutex_unlock(&server->connQueueMutex);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue