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
1 changed files with 1 additions and 1 deletions

View File

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