From 2c70251df19f2a92214a380ffbdfdb40a649d9bc Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 5 Feb 2014 10:03:28 +0100 Subject: db/UpdateGlue: relax assertion Fixes assertion failure when update gets launched during MPD startup. --- src/db/update/UpdateGlue.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/db/update/UpdateGlue.cxx b/src/db/update/UpdateGlue.cxx index 32e817ff1..41640e0ef 100644 --- a/src/db/update/UpdateGlue.cxx +++ b/src/db/update/UpdateGlue.cxx @@ -77,7 +77,7 @@ UpdateService::Task(void *ctx) void UpdateService::StartThread(UpdateQueueItem &&i) { - assert(GetEventLoop().IsInside()); + assert(GetEventLoop().IsInsideOrNull()); progress = UPDATE_PROGRESS_RUNNING; modified = false; @@ -104,7 +104,7 @@ UpdateService::GenerateId() unsigned UpdateService::Enqueue(const char *path, bool discard) { - assert(GetEventLoop().IsInside()); + assert(GetEventLoop().IsInsideOrNull()); if (progress != UPDATE_PROGRESS_IDLE) { const unsigned id = GenerateId(); -- cgit v1.2.3