diff options
author | Max Kellermann <max@duempel.org> | 2014-12-15 00:39:18 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-12-15 00:39:30 +0100 |
commit | 68d1abdb851a839fefc55b00eb49eb22a399595b (patch) | |
tree | 8180882ba60030ff3c89ad75ed5157336fa5a110 | |
parent | 7e8474a85ab179d19395495c734fb6e9d57a57a3 (diff) | |
download | mpd-68d1abdb851a839fefc55b00eb49eb22a399595b.tar.gz mpd-68d1abdb851a839fefc55b00eb49eb22a399595b.tar.xz mpd-68d1abdb851a839fefc55b00eb49eb22a399595b.zip |
storage/nfs: clear last_error in SetState()
Fixes bogus assertion failure.
Diffstat (limited to '')
-rw-r--r-- | src/storage/plugins/NfsStorage.cxx | 1 |
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(); } |