uv: dont try to touch watcher until after loop initialized
This commit is contained in:
parent
8694d1bdbc
commit
0a3859f623
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue