From 9b5985940c25df5d77490dfe9135c5577de39ba4 Mon Sep 17 00:00:00 2001 From: Nate Choe Date: Tue, 22 Feb 2022 04:29:05 -0600 Subject: [PATCH] Actually removed connections when they are made --- src/runner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runner.c b/src/runner.c index 24bbd5a..28b1fa5 100644 --- a/src/runner.c +++ b/src/runner.c @@ -55,12 +55,12 @@ void *runServer(RunnerArgs *args) { createLog(log); } - for (i = 1; i < connCount; i++) { if (updateConnection(connections + i, site)) goto remove; continue; remove: + freeConnection(connections + i); connCount--; memcpy(fds + i, fds + connCount, sizeof(struct pollfd));