Commit 2c70251d authored by Max Kellermann's avatar Max Kellermann

db/UpdateGlue: relax assertion

Fixes assertion failure when update gets launched during MPD startup.
parent d380db25
...@@ -77,7 +77,7 @@ UpdateService::Task(void *ctx) ...@@ -77,7 +77,7 @@ UpdateService::Task(void *ctx)
void void
UpdateService::StartThread(UpdateQueueItem &&i) UpdateService::StartThread(UpdateQueueItem &&i)
{ {
assert(GetEventLoop().IsInside()); assert(GetEventLoop().IsInsideOrNull());
progress = UPDATE_PROGRESS_RUNNING; progress = UPDATE_PROGRESS_RUNNING;
modified = false; modified = false;
...@@ -104,7 +104,7 @@ UpdateService::GenerateId() ...@@ -104,7 +104,7 @@ UpdateService::GenerateId()
unsigned unsigned
UpdateService::Enqueue(const char *path, bool discard) UpdateService::Enqueue(const char *path, bool discard)
{ {
assert(GetEventLoop().IsInside()); assert(GetEventLoop().IsInsideOrNull());
if (progress != UPDATE_PROGRESS_IDLE) { if (progress != UPDATE_PROGRESS_IDLE) {
const unsigned id = GenerateId(); const unsigned id = GenerateId();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment