mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
ws: fix coredump of lws_create_context
Signed-off-by: t00416110 <tanyifeng1@huawei.com>
This commit is contained in:
parent
8587e164f0
commit
8a4b72463f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue