From 7e8474a85ab179d19395495c734fb6e9d57a57a3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 15 Dec 2014 00:31:12 +0100 Subject: lib/nfs/Connection: unregister socket with SocketMonitor::Steal() SocketMonitor::Cancel() does not actually unregister the socket; it only disables the event. --- src/lib/nfs/Connection.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib') 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(); -- cgit v1.2.3