1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

libevent: idle timer should not be EV_PERSIST

This commit is contained in:
Andy Green 2019-02-16 17:26:10 +08:00
parent 32cb5e1466
commit f17c2da2bf

View file

@ -65,6 +65,8 @@ lws_event_idle_timer_cb(int fd, short event, void *p)
}
}
lwsl_debug("%s: wait\n", __func__);
/* account for hrtimer */
lws_pt_lock(pt, __func__);
@ -184,8 +186,8 @@ elops_init_pt_event(struct lws_context *context, void *_loop, int tsi)
pt->event.hrtimer = event_new(loop, -1, EV_PERSIST,
lws_event_hrtimer_cb, pt);
pt->event.idle_timer = event_new(loop, -1, EV_PERSIST,
lws_event_idle_timer_cb, pt);
pt->event.idle_timer = event_new(loop, -1, 0,
lws_event_idle_timer_cb, pt);
/* Register the signal watcher unless it's a foreign loop */