ithewei 4 年之前
父節點
當前提交
009458a632
共有 1 個文件被更改,包括 1 次插入1 次删除
  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) {