diff options
author | Max Kellermann <max@duempel.org> | 2014-12-15 00:31:12 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-12-15 00:31:12 +0100 |
commit | 7e8474a85ab179d19395495c734fb6e9d57a57a3 (patch) | |
tree | 2383b7937b4dd31388ee559afbb16eb29a2f56d8 | |
parent | 82da364b8b9c6073e4af58cddc85357674a1a2e5 (diff) | |
download | mpd-7e8474a85ab179d19395495c734fb6e9d57a57a3.tar.gz mpd-7e8474a85ab179d19395495c734fb6e9d57a57a3.tar.xz mpd-7e8474a85ab179d19395495c734fb6e9d57a57a3.zip |
lib/nfs/Connection: unregister socket with SocketMonitor::Steal()
SocketMonitor::Cancel() does not actually unregister the socket; it
only disables the event.
-rw-r--r-- | src/lib/nfs/Connection.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/nfs/Connection.cxx b/src/lib/nfs/Connection.cxx index 9d9cd8a52..6e9f77345 100644 --- a/src/lib/nfs/Connection.cxx +++ b/src/lib/nfs/Connection.cxx @@ -391,7 +391,7 @@ NfsConnection::DestroyContext() DeferredMonitor::Cancel(); if (SocketMonitor::IsDefined()) - SocketMonitor::Cancel(); + SocketMonitor::Steal(); callbacks.ForEach([](CancellableCallback &c){ c.PrepareDestroyContext(); |