Minor logic change

This commit is contained in:
Nate Choe
2022-02-16 23:33:14 -06:00
parent f79105f621
commit 49adfea0db
2 changed files with 14 additions and 9 deletions

View File

@@ -46,16 +46,12 @@ void *runServer(RunnerArgs *args) {
for (;;) {
int i;
if (site->timeout == 0) {
poll(fds, connCount, -1);
}
else
poll(fds, connCount, site->timeout);
poll(fds, connCount, -1);
{
char log[200];
sprintf(log,
"poll() finished with %d connections and a timeout of %d ms",
connCount, site->timeout);
"poll() finished with %d connections",
connCount);
createLog(log);
}