Преглед изворни кода

fixbug: EVENT_ACTIVE when EVENT_RESET

ithewei пре 5 година
родитељ
комит
ef8d4cbe48
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      event/hevent.h

+ 1 - 1
event/hevent.h

@@ -192,7 +192,7 @@ void hio_free(hio_t* io);
 #define EVENT_RESET(ev) \
     do {\
         ev->destroy = 0;\
-        ev->active  = 1;\
+        EVENT_ACTIVE(ev);\
         ev->pending = 0;\
     } while(0)