mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
libev: fix destroy path and example typo
https://github.com/warmcat/libwebsockets/issues/1913
This commit is contained in:
parent
b3576e7205
commit
5623380803
2 changed files with 2 additions and 5 deletions
|
@ -235,11 +235,8 @@ elops_destroy_pt_ev(struct lws_context *context, int tsi)
|
|||
ev_timer_stop(pt->ev.io_loop, &pt->ev.hrtimer);
|
||||
ev_idle_stop(pt->ev.io_loop, &pt->ev.idle);
|
||||
|
||||
if (!pt->event_loop_foreign) {
|
||||
if (!pt->event_loop_foreign)
|
||||
ev_signal_stop(pt->ev.io_loop, &pt->w_sigint.ev.watcher);
|
||||
|
||||
ev_loop_destroy(pt->ev.io_loop);
|
||||
}
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
|
@ -306,7 +306,7 @@ foreign_event_loop_cleanup_libev(void)
|
|||
ev_timer_stop(loop_ev, &timer_outer_ev);
|
||||
ev_signal_stop(loop_ev, &sighandler_ev);
|
||||
|
||||
ev_run(loop_ev, UV_RUN_DEFAULT);
|
||||
ev_run(loop_ev, 0);
|
||||
ev_loop_destroy(loop_ev);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue