aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/worker_queue.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/worker_queue.c')
-rw-r--r--src/worker_queue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/worker_queue.c b/src/worker_queue.c
index 06119e2..b0dda38 100644
--- a/src/worker_queue.c
+++ b/src/worker_queue.c
@@ -7,11 +7,11 @@
#include "worker_queue.h"
#include "log.h"
+#include "net.h"
#include <pthread.h>
#include <stdlib.h>
#include <sys/queue.h>
-#include <unistd.h>
struct worker {
pthread_t thread;
@@ -38,7 +38,7 @@ void worker_destroy(struct worker *entry)
{
log("Waiting for worker %d thread to exit\n", entry->fd);
pthread_errno_if(pthread_join(entry->thread, NULL), "pthread_join");
- log_errno_if(close(entry->fd), "close");
+ net_close(entry->fd);
free(entry);
}