summaryrefslogtreecommitdiff
path: root/src/storage
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-02-15 18:33:58 +0100
committerMax Kellermann <max@musicpd.org>2019-02-15 18:33:58 +0100
commit281461f0f07b27253f39a96d1c576d5f410b5802 (patch)
treed751439034f3387e4448bbd07013849a6be3e529 /src/storage
parentf70eb638793daa6769fb3ddcdc11133e9aaa79ea (diff)
nfs: work around assertion failure on exception during program init
Closes #477
Diffstat (limited to 'src/storage')
-rw-r--r--src/storage/plugins/NfsStorage.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/storage/plugins/NfsStorage.cxx b/src/storage/plugins/NfsStorage.cxx
index 346f9e6c2..5f9450497 100644
--- a/src/storage/plugins/NfsStorage.cxx
+++ b/src/storage/plugins/NfsStorage.cxx
@@ -192,7 +192,7 @@ private:
}
void Disconnect() noexcept {
- assert(GetEventLoop().IsInside());
+ assert(!GetEventLoop().IsAlive() || GetEventLoop().IsInside());
switch (state) {
case State::INITIAL: