aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/update/UpdateGlue.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-31 21:59:35 +0100
committerMax Kellermann <max@duempel.org>2014-01-31 21:59:35 +0100
commit04b4f534889719fd822aff5cf9b78a50d1da47ad (patch)
treef65f02186f295ad24eec1294fb92802d888f145d /src/db/update/UpdateGlue.cxx
parentc310941f69ead4371d659241fea06687ac81fe76 (diff)
downloadmpd-04b4f534889719fd822aff5cf9b78a50d1da47ad.tar.gz
mpd-04b4f534889719fd822aff5cf9b78a50d1da47ad.tar.xz
mpd-04b4f534889719fd822aff5cf9b78a50d1da47ad.zip
db/update: convert runtime check to assertion
Diffstat (limited to 'src/db/update/UpdateGlue.cxx')
-rw-r--r--src/db/update/UpdateGlue.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/db/update/UpdateGlue.cxx b/src/db/update/UpdateGlue.cxx
index 2214bb2f7..285143ffe 100644
--- a/src/db/update/UpdateGlue.cxx
+++ b/src/db/update/UpdateGlue.cxx
@@ -20,7 +20,6 @@
#include "config.h"
#include "Service.hxx"
#include "UpdateDomain.hxx"
-#include "Mapper.hxx"
#include "db/DatabaseSimple.hxx"
#include "Idle.hxx"
#include "util/Error.hxx"
@@ -102,9 +101,6 @@ UpdateService::Enqueue(const char *path, bool discard)
{
assert(main_thread.IsInside());
- if (!db_is_simple() || !mapper_has_music_directory())
- return 0;
-
if (progress != UPDATE_PROGRESS_IDLE) {
const unsigned id = GenerateId();
if (!queue.Push(path, discard, id))
@@ -152,4 +148,5 @@ UpdateService::RunDeferred()
UpdateService::UpdateService(EventLoop &_loop)
:DeferredMonitor(_loop), walk(_loop)
{
+ assert(db_is_simple());
}