diff --git a/lib/core/context.c b/lib/core/context.c index 094e43aa7..fe9ec3e32 100644 --- a/lib/core/context.c +++ b/lib/core/context.c @@ -363,7 +363,7 @@ lwsl_info("context created\n"); #if LWS_MAX_SMP > 1 /* each thread serves his own chunk of fds */ - for (n = 1; n < (int)info->count_threads; n++) + for (n = 1; n < (int)context->count_threads; n++) context->pt[n].fds = context->pt[n - 1].fds + context->fd_limit_per_thread; #endif