nfs/Connection: fix assertion failure

This commit is contained in:
Max Kellermann 2014-08-31 17:39:33 +02:00
parent e5a28bfd8d
commit 8707aafaf7

View File

@ -223,7 +223,9 @@ NfsConnection::DestroyContext()
{
assert(context != nullptr);
SocketMonitor::Cancel();
if (SocketMonitor::IsDefined())
SocketMonitor::Cancel();
nfs_destroy_context(context);
context = nullptr;
}