storage/nfs: clear last_error in SetState()

Fixes bogus assertion failure.
This commit is contained in:
Max Kellermann 2014-12-15 00:39:18 +01:00
parent 7e8474a85a
commit 68d1abdb85
1 changed files with 1 additions and 0 deletions

View File

@ -146,6 +146,7 @@ private:
const ScopeLock protect(mutex);
state = _state;
last_error.Clear();
last_error.Set(error);
cond.broadcast();
}