summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/nfs/Manager.cxx4
-rw-r--r--src/storage/plugins/NfsStorage.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/nfs/Manager.cxx b/src/lib/nfs/Manager.cxx
index a4ebcc2ae..9fc34813b 100644
--- a/src/lib/nfs/Manager.cxx
+++ b/src/lib/nfs/Manager.cxx
@@ -73,7 +73,7 @@ NfsManager::Compare::operator()(const ManagedConnection &a,
NfsManager::~NfsManager() noexcept
{
- assert(GetEventLoop().IsInside());
+ assert(!GetEventLoop().IsAlive() || GetEventLoop().IsInside());
CollectGarbage();
@@ -103,7 +103,7 @@ NfsManager::GetConnection(const char *server, const char *export_name) noexcept
void
NfsManager::CollectGarbage() noexcept
{
- assert(GetEventLoop().IsInside());
+ assert(!GetEventLoop().IsAlive() || GetEventLoop().IsInside());
garbage.clear_and_dispose(DeleteDisposer());
}
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: