aboutsummaryrefslogtreecommitdiffstats
path: root/src/storage
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-12-15 00:39:18 +0100
committerMax Kellermann <max@duempel.org>2014-12-15 00:39:30 +0100
commit68d1abdb851a839fefc55b00eb49eb22a399595b (patch)
tree8180882ba60030ff3c89ad75ed5157336fa5a110 /src/storage
parent7e8474a85ab179d19395495c734fb6e9d57a57a3 (diff)
downloadmpd-68d1abdb851a839fefc55b00eb49eb22a399595b.tar.gz
mpd-68d1abdb851a839fefc55b00eb49eb22a399595b.tar.xz
mpd-68d1abdb851a839fefc55b00eb49eb22a399595b.zip
storage/nfs: clear last_error in SetState()
Fixes bogus assertion failure.
Diffstat (limited to 'src/storage')
-rw-r--r--src/storage/plugins/NfsStorage.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/storage/plugins/NfsStorage.cxx b/src/storage/plugins/NfsStorage.cxx
index 8ddb14250..823d662c5 100644
--- a/src/storage/plugins/NfsStorage.cxx
+++ b/src/storage/plugins/NfsStorage.cxx
@@ -146,6 +146,7 @@ private:
const ScopeLock protect(mutex);
state = _state;
+ last_error.Clear();
last_error.Set(error);
cond.broadcast();
}