diff options
author | Max Kellermann <max@duempel.org> | 2014-11-25 12:29:55 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-11-25 14:02:15 +0100 |
commit | e72eef421b75516e0447e4a06419d1a7aba4d853 (patch) | |
tree | aeba341719d253c97851605b5a4abb8f595e8773 | |
parent | 016063c810281bd05c792dfe8643cc68b4c3cab2 (diff) | |
download | mpd-e72eef421b75516e0447e4a06419d1a7aba4d853.tar.gz mpd-e72eef421b75516e0447e4a06419d1a7aba4d853.tar.xz mpd-e72eef421b75516e0447e4a06419d1a7aba4d853.zip |
lib/nfs/FileReader: clean up on disconnect
Avoids crash because Close() invokes a call on a destructed
NfsConnection.
-rw-r--r-- | src/lib/nfs/FileReader.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/nfs/FileReader.cxx b/src/lib/nfs/FileReader.cxx index 455165bbd..1b80f2c86 100644 --- a/src/lib/nfs/FileReader.cxx +++ b/src/lib/nfs/FileReader.cxx @@ -186,7 +186,7 @@ NfsFileReader::OnNfsConnectionDisconnected(const Error &error) { assert(state > State::MOUNT); - state = State::INITIAL; + CancelOrClose(); Error copy; copy.Set(error); |