Fix a bug : Remove thread if there is no more active connection (bad condition tested)
This commit is contained in:
parent
96fb2c5a8e
commit
93f45dab81
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user