lib/nfs/Connection: unregister socket with SocketMonitor::Steal()

SocketMonitor::Cancel() does not actually unregister the socket; it
only disables the event.
This commit is contained in:
Max Kellermann 2014-12-15 00:31:12 +01:00
parent 82da364b8b
commit 7e8474a85a
1 changed files with 1 additions and 1 deletions

View File

@ -391,7 +391,7 @@ NfsConnection::DestroyContext()
DeferredMonitor::Cancel();
if (SocketMonitor::IsDefined())
SocketMonitor::Cancel();
SocketMonitor::Steal();
callbacks.ForEach([](CancellableCallback &c){
c.PrepareDestroyContext();