From e83f805b8fa34db8ac0b885d3fb78c0e6437c908 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 10 Jan 2013 19:13:00 +0100 Subject: Main, IOThread: move GMainLoop setup code to class EventLoop --- src/SignalHandlers.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/SignalHandlers.cxx') diff --git a/src/SignalHandlers.cxx b/src/SignalHandlers.cxx index 4fd7675f..a1938c73 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) -- cgit v1.2.3