mirror of
https://github.com/troglobit/finit.git
synced 2026-10-25 12:04:36 +00:00
plugin_unregister(): Stop I/O watcher before free():ing watcher
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
92b1d882e5
commit
5354a57313
1 file changed
+3
@@ -108,6 +108,9 @@ int plugin_register(plugin_t *plugin)
|
||||
/* Not called, at the moment plugins cannot be unloaded. */
|
||||
int plugin_unregister(plugin_t *plugin)
|
||||
{
|
||||
if (is_io_plugin(plugin))
|
||||
uev_io_stop(&plugin->watcher);
|
||||
|
||||
#ifndef ENABLE_STATIC
|
||||
TAILQ_REMOVE(&plugins, plugin, link);
|
||||
|
||||
|
||||
Reference in new issue
Block a user