aboutsummaryrefslogtreecommitdiffstats
path: root/src/Main.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-04 18:51:01 +0100
committerMax Kellermann <max@duempel.org>2014-02-04 18:54:54 +0100
commiteec6d0995982a59960dfb38cddad8bf4567e6b3c (patch)
tree7a0901cc355792948d52b9626512fe4463500546 /src/Main.cxx
parentc5fa8ed3217a9223f5e36fdda23021a47e0f81ac (diff)
downloadmpd-eec6d0995982a59960dfb38cddad8bf4567e6b3c.tar.gz
mpd-eec6d0995982a59960dfb38cddad8bf4567e6b3c.tar.xz
mpd-eec6d0995982a59960dfb38cddad8bf4567e6b3c.zip
db/update/Service: use DatabaseListener instead of Instance
Don't use the global variable "instance".
Diffstat (limited to '')
-rw-r--r--src/Main.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Main.cxx b/src/Main.cxx
index 8a5ed7506..fd10d2253 100644
--- a/src/Main.cxx
+++ b/src/Main.cxx
@@ -211,7 +211,7 @@ glue_db_init_and_load(void)
return true;
SimpleDatabase &db = *(SimpleDatabase *)instance->database;
- instance->update = new UpdateService(*main_loop, db);
+ instance->update = new UpdateService(*main_loop, db, *instance);
/* run database update after daemonization? */
return db.FileExists();