simplified server listening loop exit

This commit is contained in:
Václav Šmejkal 2024-01-27 17:43:59 +01:00
parent d43882b38f
commit 905c2004db
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -507,7 +507,7 @@ void *why2_listen_server(void *socket)
printf(">>> "); printf(">>> ");
fflush(stdout); fflush(stdout);
for (;;) while (!exiting)
{ {
read = why2_read_socket(*((int*) socket)); read = why2_read_socket(*((int*) socket));
@ -541,7 +541,6 @@ void *why2_listen_server(void *socket)
} }
why2_deallocate(read); why2_deallocate(read);
if (exiting) break;
} }
return NULL; return NULL;