diff options
author | Andy Green <andy@warmcat.com> | 2021-09-27 06:29:34 +0100 |
---|---|---|
committer | Andy Green <andy@warmcat.com> | 2021-10-05 07:40:17 +0100 |
commit | ee15b82b6e8d2ba038dec7e2c51585a70fdd746c (patch) | |
tree | be879b69e058631a4c2c44d770b682c4d626be62 /lib/core-net | |
parent | 71b8f4dc686aed28f1f88ef5ba59208e3366d75c (diff) | |
download | libwebsockets-ee15b82b6e8d2ba038dec7e2c51585a70fdd746c.tar.gz |
cmake: unbreak LWS_WITH_SYS_STATE disabled build
Diffstat (limited to 'lib/core-net')
-rw-r--r-- | lib/core-net/route.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/core-net/route.c b/lib/core-net/route.c index 9fdbb780..91744372 100644 --- a/lib/core-net/route.c +++ b/lib/core-net/route.c @@ -341,8 +341,12 @@ _lws_route_pt_close_unroutable(struct lws_context_per_thread *pt) struct lws *wsi; unsigned int n; - if (!pt->context->nl_initial_done || - pt->context->mgr_system.state < LWS_SYSTATE_IFACE_COLDPLUG) + if (!pt->context->nl_initial_done +#if defined(LWS_WITH_SYS_STATE) + || + pt->context->mgr_system.state < LWS_SYSTATE_IFACE_COLDPLUG +#endif + ) return 0; lwsl_cx_debug(pt->context, "in"); |