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