Commit f5f43db2 authored by Max Kellermann's avatar Max Kellermann

lib/nfs/Connection: cancel DeferredMonitor on disconnect

Fixes potential second mount attempt after the old connection to the NFS server was shut down.
parent 029555d1
......@@ -327,6 +327,10 @@ NfsConnection::DestroyContext()
assert(GetEventLoop().IsInside());
assert(context != nullptr);
/* cancel pending DeferredMonitor that was scheduled to notify
new leases */
DeferredMonitor::Cancel();
if (SocketMonitor::IsDefined())
SocketMonitor::Cancel();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment