Wait also for the active TCP threads on shutdown
This commit is contained in:
parent
da387b48fe
commit
34cf1530ad
1 changed files with 2 additions and 1 deletions
|
@ -727,7 +727,8 @@ tcp_server_done(void)
|
|||
tvh_pipe_close(&tcp_server_pipe);
|
||||
tvhpoll_destroy(tcp_server_poll);
|
||||
|
||||
assert(LIST_FIRST(&tcp_server_active) == NULL);
|
||||
while (LIST_FIRST(&tcp_server_active) != NULL)
|
||||
usleep(20000);
|
||||
pthread_mutex_lock(&global_lock);
|
||||
while ((tsl = LIST_FIRST(&tcp_server_join)) != NULL) {
|
||||
LIST_REMOVE(tsl, jlink);
|
||||
|
|
Loading…
Add table
Reference in a new issue