1
0
Fork 0
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:
Andy Green 2020-12-23 14:59:00 +00:00
parent 3234201531
commit ac6a582254

View file

@ -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);