nfs/Connection: fix assertion failure
This commit is contained in:
parent
e5a28bfd8d
commit
8707aafaf7
@ -223,7 +223,9 @@ NfsConnection::DestroyContext()
|
||||
{
|
||||
assert(context != nullptr);
|
||||
|
||||
SocketMonitor::Cancel();
|
||||
if (SocketMonitor::IsDefined())
|
||||
SocketMonitor::Cancel();
|
||||
|
||||
nfs_destroy_context(context);
|
||||
context = nullptr;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user