diff options
author | Max Kellermann <max@musicpd.org> | 2019-02-05 21:50:31 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-02-05 22:07:49 +0100 |
commit | 9e73ea77b4ccd4131823ddc156322a2e4082d417 (patch) | |
tree | 50a5ed0b8b1eafd0e130ff757e700b9bda780504 /src/Main.cxx | |
parent | b0739eca87439a8f9cc2a0f9a6fcba1f68708df6 (diff) |
input/Init: add RAII class
Diffstat (limited to 'src/Main.cxx')
-rw-r--r-- | src/Main.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Main.cxx b/src/Main.cxx index a932a50ce..38f6efe2a 100644 --- a/src/Main.cxx +++ b/src/Main.cxx @@ -553,8 +553,8 @@ mpd_main_after_fork(const ConfigData &raw_config, const Config &config) } client_manager_init(raw_config); - input_stream_global_init(raw_config, - instance->io_thread.GetEventLoop()); + const ScopeInputPluginsInit input_plugins_init(raw_config, + instance->io_thread.GetEventLoop()); playlist_list_global_init(raw_config); #ifdef ENABLE_DAEMON @@ -660,7 +660,6 @@ mpd_main_after_fork(const ConfigData &raw_config, const Config &config) #endif playlist_list_global_finish(); - input_stream_global_finish(); #ifdef ENABLE_DATABASE mapper_finish(); |