event/Loop: allow AddTimer() after Run() has returned
Kludge for libavahi-client quirk.
This commit is contained in:
parent
970b10d01b
commit
eb23ef1747
@ -100,7 +100,9 @@ EventLoop::RemoveIdle(IdleMonitor &i)
|
|||||||
void
|
void
|
||||||
EventLoop::AddTimer(TimeoutMonitor &t, unsigned ms)
|
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));
|
timers.insert(TimerRecord(t, now_ms + ms));
|
||||||
again = true;
|
again = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user