From 582c2105a99c814c678cc778b9591b8372a1049a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 6 Jan 2014 21:57:19 +0100 Subject: event/Loop: cancel the WakeFD monitor in destructor --- src/event/Loop.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/event/Loop.cxx') diff --git a/src/event/Loop.cxx b/src/event/Loop.cxx index 6281b09ec..6e18b6bf8 100644 --- a/src/event/Loop.cxx +++ b/src/event/Loop.cxx @@ -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 -- cgit v1.2.3