Commit 7adc1e4a authored by yzg's avatar yzg Committed by Kishen Maloor

fix oc_timer issue

if the next timer is deleted by current timer's callback function,
the timer list is broken.
parent 061c61d2
Pipeline #920 passed with stage
in 9 minutes and 4 seconds
......@@ -432,6 +432,8 @@ poll_event_callback_timers(oc_list_t list, struct oc_memb *cb_pool)
OC_PROCESS_CONTEXT_BEGIN(&timed_callback_events);
oc_etimer_restart(&event_cb->timer);
OC_PROCESS_CONTEXT_END(&timed_callback_events);
event_cb = oc_list_head(list);
continue;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment