simplified server listening loop exit
This commit is contained in:
parent
d43882b38f
commit
905c2004db
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user