Commit 38f19981 authored by Max Kellermann's avatar Max Kellermann

lib/nfs/FileReader: reset state in OnNfsConnectionFailed()

Avoid calling NfsConnection::RemoveLease(), because the lease has been removed already.
parent 40dd968f
......@@ -164,6 +164,8 @@ NfsFileReader::OnNfsConnectionFailed(const Error &error)
{
assert(state == State::MOUNT);
state = State::INITIAL;
Error copy;
copy.Set(error);
OnNfsFileError(std::move(copy));
......
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