diff options
author | Max Kellermann <max@duempel.org> | 2014-11-25 13:09:19 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-11-25 13:22:25 +0100 |
commit | f5f43db2da6bf0e5f39c8fb281ccca6e3dd8e65a (patch) | |
tree | 301becdfc897cc95aa71928e93e7ba860e82ef29 /src/lib/nfs | |
parent | 029555d1921e651f1ed6929561a52eb598def3fb (diff) |
lib/nfs/Connection: cancel DeferredMonitor on disconnect
Fixes potential second mount attempt after the old connection to the
NFS server was shut down.
Diffstat (limited to 'src/lib/nfs')
-rw-r--r-- | src/lib/nfs/Connection.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/nfs/Connection.cxx b/src/lib/nfs/Connection.cxx index c2c7ceb2b..c4612f613 100644 --- a/src/lib/nfs/Connection.cxx +++ b/src/lib/nfs/Connection.cxx @@ -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(); |