libev context destroy

https://github.com/warmcat/libwebsockets/issues/380
This commit is contained in:
gaby64 2016-01-29 08:40:11 +08:00 committed by Andy Green
parent ba955592eb
commit 784231a642

View file

@ -304,6 +304,11 @@ lws_context_destroy(struct lws_context *context)
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_ssl_context_destroy(context);