diff options
author | Max Kellermann <max@duempel.org> | 2013-01-10 19:13:00 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-14 09:15:49 +0100 |
commit | e83f805b8fa34db8ac0b885d3fb78c0e6437c908 (patch) | |
tree | 25c78bb3b016875aa9df2ec5449c623148083531 /src/SignalHandlers.cxx | |
parent | be98afe34d550a322adea78f92f1fd2088408e96 (diff) | |
download | mpd-e83f805b8fa34db8ac0b885d3fb78c0e6437c908.tar.gz mpd-e83f805b8fa34db8ac0b885d3fb78c0e6437c908.tar.xz mpd-e83f805b8fa34db8ac0b885d3fb78c0e6437c908.zip |
Main, IOThread: move GMainLoop setup code to class EventLoop
Diffstat (limited to 'src/SignalHandlers.cxx')
-rw-r--r-- | src/SignalHandlers.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/SignalHandlers.cxx b/src/SignalHandlers.cxx index 4fd7675ff..a1938c737 100644 --- a/src/SignalHandlers.cxx +++ b/src/SignalHandlers.cxx @@ -24,6 +24,7 @@ #include "Log.hxx" #include "Main.hxx" +#include "event/Loop.hxx" #include "GlobalEvents.hxx" #include "mpd_error.h" @@ -35,7 +36,7 @@ static void exit_signal_handler(G_GNUC_UNUSED int signum) { - g_main_loop_quit(main_loop); + main_loop->Break(); } static void reload_signal_handler(G_GNUC_UNUSED int signum) |