diff options
author | Max Kellermann <max@duempel.org> | 2014-01-06 21:57:19 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-06 21:57:40 +0100 |
commit | 582c2105a99c814c678cc778b9591b8372a1049a (patch) | |
tree | 995b06b6ff808e38cf6a86e6bda08321a17ed323 /src | |
parent | f39a34ccfa10e10ca4e71db52a5b5fb540b98fb1 (diff) | |
download | mpd-582c2105a99c814c678cc778b9591b8372a1049a.tar.gz mpd-582c2105a99c814c678cc778b9591b8372a1049a.tar.xz mpd-582c2105a99c814c678cc778b9591b8372a1049a.zip |
event/Loop: cancel the WakeFD monitor in destructor
Diffstat (limited to 'src')
-rw-r--r-- | src/event/Loop.cxx | 4 |
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 |