aboutsummaryrefslogtreecommitdiffstats
path: root/src/UpdateGlue.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/UpdateGlue.cxx')
-rw-r--r--src/UpdateGlue.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/UpdateGlue.cxx b/src/UpdateGlue.cxx
index 12ea126a9..29e5f3ca7 100644
--- a/src/UpdateGlue.cxx
+++ b/src/UpdateGlue.cxx
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2013 The Music Player Daemon Project
+ * Copyright (C) 2003-2014 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
@@ -29,12 +29,12 @@
#include "GlobalEvents.hxx"
#include "util/Error.hxx"
#include "Log.hxx"
-#include "Stats.hxx"
#include "Main.hxx"
#include "Instance.hxx"
#include "system/FatalError.hxx"
#include "thread/Id.hxx"
#include "thread/Thread.hxx"
+#include "thread/Util.hxx"
#include <assert.h>
@@ -69,6 +69,8 @@ update_task(gcc_unused void *ctx)
else
LogDebug(update_domain, "starting");
+ SetThreadIdlePriority();
+
modified = update_walk(next.path_utf8.c_str(), next.discard);
if (modified || !db_exists()) {
@@ -162,8 +164,6 @@ static void update_finished_event(void)
spawn_update_task(std::move(i));
} else {
progress = UPDATE_PROGRESS_IDLE;
-
- stats_update();
}
}