plugins: close/exit iwatch *after* event loop has been detached

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2022-04-14 08:33:24 +02:00
parent 6a21ac55ad
commit 7d831170ae
5 changed files with 5 additions and 5 deletions
+1
View File
@@ -450,6 +450,7 @@ PLUGIN_INIT(plugin_init)
PLUGIN_EXIT(plugin_exit)
{
plugin_unregister(&plugin);
close(plugin.io.fd);
}
/**