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

Avoid calling NfsConnection::RemoveLease(), because the lease has been
removed already.
This commit is contained in:
Max Kellermann 2014-11-25 13:50:36 +01:00
parent 40dd968f13
commit 38f19981b2

View File

@ -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));