aboutsummaryrefslogtreecommitdiffstats
path: root/src/event
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-06 21:57:19 +0100
committerMax Kellermann <max@duempel.org>2014-01-06 21:57:40 +0100
commit582c2105a99c814c678cc778b9591b8372a1049a (patch)
tree995b06b6ff808e38cf6a86e6bda08321a17ed323 /src/event
parentf39a34ccfa10e10ca4e71db52a5b5fb540b98fb1 (diff)
downloadmpd-582c2105a99c814c678cc778b9591b8372a1049a.tar.gz
mpd-582c2105a99c814c678cc778b9591b8372a1049a.tar.xz
mpd-582c2105a99c814c678cc778b9591b8372a1049a.zip
event/Loop: cancel the WakeFD monitor in destructor
Diffstat (limited to 'src/event')
-rw-r--r--src/event/Loop.cxx4
1 files changed, 4 insertions, 0 deletions
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