Actually removed connections when they are made

This commit is contained in:
Nate Choe
2022-02-22 04:29:05 -06:00
parent 4366c8ad65
commit 9b5985940c

View File

@@ -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));