src/server/daemon/event_solaris.c

changeset 537
ad44e72fbf50
parent 531
9b15b1f72bef
child 541
1e1fca11aaff
--- a/src/server/daemon/event_solaris.c	Wed Jun 05 19:49:17 2024 +0200
+++ b/src/server/daemon/event_solaris.c	Wed Jun 05 19:50:44 2024 +0200
@@ -124,7 +124,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