Skip to content
Snippets Groups Projects
Commit 0a3859f6 authored by Andy Green's avatar Andy Green
Browse files

uv: dont try to touch watcher until after loop initialized

parent 8694d1bd
No related branches found
No related tags found
No related merge requests found
......@@ -347,7 +347,9 @@ lws_libuv_io(struct lws *wsi, int flags)
// lwsl_notice("%s: wsi: %p, flags:0x%x\n", __func__, wsi, flags);
if (!pt->io_loop_uv) {
// w->context is set after the loop is initialized
if (!pt->io_loop_uv || !w->context) {
lwsl_info("%s: no io loop yet\n", __func__);
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment