db/update/Service: Enqueue() throws on error

This commit is contained in:
Max Kellermann
2018-08-19 23:15:52 +02:00
parent 9999914c74
commit cc64c715a2
4 changed files with 11 additions and 15 deletions

View File

@@ -617,9 +617,7 @@ mpd_main_after_fork(const ConfigData &raw_config, const Config &config)
if (create_db) {
/* the database failed to load: recreate the
database */
unsigned job = instance->update->Enqueue("", true);
if (job == 0)
throw std::runtime_error("directory update failed");
instance->update->Enqueue("", true);
}
#endif