diff options
author | Max Kellermann <max@musicpd.org> | 2019-02-15 18:33:58 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-02-15 18:33:58 +0100 |
commit | 281461f0f07b27253f39a96d1c576d5f410b5802 (patch) | |
tree | d751439034f3387e4448bbd07013849a6be3e529 /src/storage | |
parent | f70eb638793daa6769fb3ddcdc11133e9aaa79ea (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.cxx | 2 |
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: |