aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/nfs/FileReader.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-11-25 12:29:55 +0100
committerMax Kellermann <max@duempel.org>2014-11-25 14:02:15 +0100
commite72eef421b75516e0447e4a06419d1a7aba4d853 (patch)
treeaeba341719d253c97851605b5a4abb8f595e8773 /src/lib/nfs/FileReader.cxx
parent016063c810281bd05c792dfe8643cc68b4c3cab2 (diff)
downloadmpd-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.
Diffstat (limited to 'src/lib/nfs/FileReader.cxx')
-rw-r--r--src/lib/nfs/FileReader.cxx2
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);