ithewei 4 năm trước cách đây
mục cha
commit
009458a632
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      event/hloop.c

+ 1 - 1
event/hloop.c

@@ -484,8 +484,8 @@ static void __hidle_del(hidle_t* idle) {
 
 void hidle_del(hidle_t* idle) {
     if (!idle->active) return;
-    EVENT_DEL(idle);
     __hidle_del(idle);
+    EVENT_DEL(idle);
 }
 
 htimer_t* htimer_add(hloop_t* loop, htimer_cb cb, uint32_t timeout, uint32_t repeat) {