mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
protocol_init: ensure its happening without client
This commit is contained in:
parent
3234201531
commit
ac6a582254
1 changed files with 4 additions and 0 deletions
|
@ -304,6 +304,10 @@ lws_service_adjust_timeout(struct lws_context *context, int timeout_ms, int tsi)
|
|||
if (!context)
|
||||
return 1;
|
||||
|
||||
if (!context->protocol_init_done)
|
||||
if (lws_protocol_init(context))
|
||||
return 1;
|
||||
|
||||
#if defined(LWS_WITH_SYS_SMD)
|
||||
if (!tsi && lws_smd_message_pending(context)) {
|
||||
lws_smd_msg_distribute(context);
|
||||
|
|
Loading…
Add table
Reference in a new issue