Fix compile warnings and errors on Linux

This commit is contained in:
Jordan Bancino 2022-08-28 16:05:11 -04:00
parent 7cc08e67fc
commit c0474982a6
2 changed files with 2 additions and 4 deletions

View file

@ -338,10 +338,7 @@ error:
QueueFree(server->connQueue); QueueFree(server->connQueue);
} }
if (server->connQueueMutex) pthread_mutex_destroy(&server->connQueueMutex);
{
pthread_mutex_destroy(&server->connQueueMutex);
}
if (server->threadPool) if (server->threadPool)
{ {

View file

@ -25,6 +25,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <time.h>
#include <sys/time.h> #include <sys/time.h>
long long