src/server/daemon/event_linux.c

changeset 537
ad44e72fbf50
parent 533
2d6099ba2a7c
child 541
1e1fca11aaff
--- a/src/server/daemon/event_linux.c	Wed Jun 05 19:49:17 2024 +0200
+++ b/src/server/daemon/event_linux.c	Wed Jun 05 19:50:44 2024 +0200
@@ -171,7 +171,10 @@
         // call event finish handlers
         for(int i=0;i<numfinished;i++) {
             Event *event = finished[i];
-            finished[i]->finish(ev, event);
+            // check again if the finish callback is set
+            if(finished[i]->finish) {
+                finished[i]->finish(ev, event);
+            }
         }
         // execute return calls
         for(int i=0;i<ev->numret;i++) {

mercurial