player/Control: start thread on demand

Keep MPD's footprint small until playback is requested.
This commit is contained in:
Max Kellermann
2018-09-23 17:32:34 +02:00
parent bf372e3e1f
commit 2ec94c0497
4 changed files with 21 additions and 14 deletions

View File

@@ -577,9 +577,6 @@ mpd_main_after_fork(const ConfigData &raw_config, const Config &config)
ZeroconfInit(raw_config, instance->event_loop);
for (auto &partition : instance->partitions)
partition.pc.StartThread();
#ifdef ENABLE_DATABASE
if (create_db) {
/* the database failed to load: recreate the