]> Nishi Git Mirror - gwion.git/commitdiff
:bug: Fix event signal
authorfennecdjay <fennecdjay@gmail.com>
Fri, 19 Aug 2022 12:34:08 +0000 (14:34 +0200)
committerfennecdjay <fennecdjay@gmail.com>
Fri, 19 Aug 2022 12:34:08 +0000 (14:34 +0200)
src/lib/event.c

index 98adc4f42caed3f817ac23c4eb577562956d99a8..eb7fe5112009497a7d5c7d50c7eba5d754f329bb 100644 (file)
@@ -35,8 +35,8 @@ static MFUN(event_signal) {
   if (sh) {
     shredule(sh->tick->shreduler, sh, GWION_EPSILON);
     vector_rem(v, 0);
+    release(sh->info->me, sh);
   }
-  release(sh->info->me, sh);
 }
 
 ANN void broadcast(const M_Object o) {