db/update/Service: use DatabaseListener instead of Instance

Don't use the global variable "instance".
This commit is contained in:
Max Kellermann
2014-02-04 18:51:01 +01:00
parent c5fa8ed321
commit eec6d09959
3 changed files with 12 additions and 6 deletions

View File

@@ -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();