From 848f6aa5ab4d15289248646b60f11b5cf508b46d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 5 Feb 2019 21:49:59 +0100 Subject: [PATCH] Main: stop io_thread and rtio_thread automatically They will be stopped by ~EventThread() when the `Instance` is deleted. --- src/Main.cxx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Main.cxx b/src/Main.cxx index d86da37aa..a932a50ce 100644 --- a/src/Main.cxx +++ b/src/Main.cxx @@ -672,9 +672,6 @@ mpd_main_after_fork(const ConfigData &raw_config, const Config &config) command_finish(); decoder_plugin_deinit_all(); - instance->rtio_thread.Stop(); - instance->io_thread.Stop(); - return EXIT_SUCCESS; }