Commit eb23ef17 authored by Max Kellermann's avatar Max Kellermann

event/Loop: allow AddTimer() after Run() has returned

Kludge for libavahi-client quirk.
parent 970b10d0
......@@ -100,7 +100,9 @@ EventLoop::RemoveIdle(IdleMonitor &i)
void
EventLoop::AddTimer(TimeoutMonitor &t, unsigned ms)
{
assert(IsInsideOrVirgin());
/* can't use IsInsideOrVirgin() here because libavahi-client
modifies the timeout during avahi_client_free() */
assert(IsInsideOrNull());
timers.insert(TimerRecord(t, now_ms + ms));
again = true;
......
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