diff options
author | Max Kellermann <max@duempel.org> | 2014-11-25 13:50:36 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-11-25 13:51:09 +0100 |
commit | 38f19981b2bcaa6f08f1d1e81be66d217e8da9b8 (patch) | |
tree | 1f6b3f78a82c5ae97a17776372037372911bbf34 | |
parent | 40dd968f1302da9fa65c53ba0ae0e6a12c7cda9b (diff) | |
download | mpd-38f19981b2bcaa6f08f1d1e81be66d217e8da9b8.tar.gz mpd-38f19981b2bcaa6f08f1d1e81be66d217e8da9b8.tar.xz mpd-38f19981b2bcaa6f08f1d1e81be66d217e8da9b8.zip |
lib/nfs/FileReader: reset state in OnNfsConnectionFailed()
Avoid calling NfsConnection::RemoveLease(), because the lease has been
removed already.
Diffstat (limited to '')
-rw-r--r-- | src/lib/nfs/FileReader.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/nfs/FileReader.cxx b/src/lib/nfs/FileReader.cxx index 7f5506d50..79256492b 100644 --- a/src/lib/nfs/FileReader.cxx +++ b/src/lib/nfs/FileReader.cxx @@ -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)); |