event/Loop: cancel the WakeFD monitor in destructor

This commit is contained in:
Max Kellermann 2014-01-06 21:57:19 +01:00
parent f39a34ccfa
commit 582c2105a9

View File

@ -42,6 +42,10 @@ EventLoop::~EventLoop()
{
assert(idle.empty());
assert(timers.empty());
/* this is necessary to get a well-defined destruction
order */
SocketMonitor::Cancel();
}
void