mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00
libev context destroy
https://github.com/warmcat/libwebsockets/issues/380
This commit is contained in:
parent
ba955592eb
commit
784231a642
1 changed files with 5 additions and 0 deletions
|
@ -304,6 +304,11 @@ lws_context_destroy(struct lws_context *context)
|
||||||
protocol++;
|
protocol++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#ifdef LWS_USE_LIBEV
|
||||||
|
ev_io_stop(context->io_loop, &context->w_accept.watcher);
|
||||||
|
if(context->use_ev_sigint)
|
||||||
|
ev_signal_stop(context->io_loop, &context->w_sigint.watcher);
|
||||||
|
#endif /* LWS_USE_LIBEV */
|
||||||
|
|
||||||
lws_plat_context_early_destroy(context);
|
lws_plat_context_early_destroy(context);
|
||||||
lws_ssl_context_destroy(context);
|
lws_ssl_context_destroy(context);
|
||||||
|
|
Loading…
Add table
Reference in a new issue