Commit e72eef42 authored by Max Kellermann's avatar Max Kellermann

lib/nfs/FileReader: clean up on disconnect

Avoids crash because Close() invokes a call on a destructed NfsConnection.
parent 016063c8
......@@ -186,7 +186,7 @@ NfsFileReader::OnNfsConnectionDisconnected(const Error &error)
{
assert(state > State::MOUNT);
state = State::INITIAL;
CancelOrClose();
Error copy;
copy.Set(error);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment