diff options
author | Max Kellermann <max@duempel.org> | 2014-08-31 17:39:33 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-08-31 17:39:33 +0200 |
commit | 8707aafaf70b4620d010633ce7e677d2a4a9247b (patch) | |
tree | 92285d64cb9d092b8596c6d219d11d8864a5fe3a /src/lib | |
parent | e5a28bfd8d07fe5ca5dee1bfb55ce414c8f7e9fc (diff) |
nfs/Connection: fix assertion failure
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/nfs/Connection.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/nfs/Connection.cxx b/src/lib/nfs/Connection.cxx index a2f0cbb45..a99b845b9 100644 --- a/src/lib/nfs/Connection.cxx +++ b/src/lib/nfs/Connection.cxx @@ -223,7 +223,9 @@ NfsConnection::DestroyContext() { assert(context != nullptr); - SocketMonitor::Cancel(); + if (SocketMonitor::IsDefined()) + SocketMonitor::Cancel(); + nfs_destroy_context(context); context = nullptr; } |