lib/nfs/FileReader: clean up on disconnect
Avoids crash because Close() invokes a call on a destructed NfsConnection.
This commit is contained in:
parent
016063c810
commit
e72eef421b
@ -186,7 +186,7 @@ NfsFileReader::OnNfsConnectionDisconnected(const Error &error)
|
|||||||
{
|
{
|
||||||
assert(state > State::MOUNT);
|
assert(state > State::MOUNT);
|
||||||
|
|
||||||
state = State::INITIAL;
|
CancelOrClose();
|
||||||
|
|
||||||
Error copy;
|
Error copy;
|
||||||
copy.Set(error);
|
copy.Set(error);
|
||||||
|
Loading…
Reference in New Issue
Block a user