Fix a bug : Remove thread if there is no more active connection (bad condition tested)

This commit is contained in:
Grégory Soutadé 2016-02-04 20:39:50 +01:00
parent 96fb2c5a8e
commit 93f45dab81

View File

@ -196,7 +196,7 @@ static void* thread_loop(void* param)
if (!nfds) if (!nfds)
{ {
// No more active socket for this thread // No more active socket for this thread
if (!ctx->nb_cur_sockets) if (!ctx->nb_available_sockets)
break; break;
usleep(100); usleep(100);