src/server/daemon/event.c

changeset 547
280bf87c8689
parent 543
3335f431a91b
child 552
4ed0e46aa9dc
--- a/src/server/daemon/event.c	Tue Aug 13 20:08:13 2024 +0200
+++ b/src/server/daemon/event.c	Thu Aug 15 21:46:57 2024 +0200
@@ -78,6 +78,13 @@
     return ret;
 }
 
+void evhandler_close(EVHandler *h) {
+    for(int i=0;i<h->numins;i++) {
+        ev_instance_close(h->instances[i]);
+    }
+    h->numins = 0;
+}
+
 /*
  * checks if there is at least one event handler and a default handler
  * if necessary, check_event_handler_cfg() creates a default event handler

mercurial