libev set foreign loop properly
After gaby64 https://github.com/warmcat/libwebsockets/issues/455 Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
dc410bfb78
commit
ec11114182
1 changed files with 2 additions and 0 deletions
|
@ -84,6 +84,8 @@ lws_ev_initloop(struct lws_context *context, struct ev_loop *loop, int tsi)
|
|||
|
||||
if (!loop)
|
||||
loop = ev_loop_new(0);
|
||||
else
|
||||
context->pt[tsi].ev_loop_foreign = 1;
|
||||
|
||||
context->pt[tsi].io_loop_ev = loop;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue