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/ClientEvent.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ClientEvent.cxx') diff --git a/src/ClientEvent.cxx b/src/ClientEvent.cxx index aacd01cf..fe967f93 100644 --- a/src/ClientEvent.cxx +++ b/src/ClientEvent.cxx @@ -20,6 +20,7 @@ #include "config.h" #include "ClientInternal.hxx" #include "Main.hxx" +#include "event/Loop.hxx" #include @@ -83,7 +84,7 @@ client_in_event(G_GNUC_UNUSED GIOChannel *source, GIOCondition condition, case COMMAND_RETURN_KILL: client_close(client); - g_main_loop_quit(main_loop); + main_loop->Break(); return false; case COMMAND_RETURN_CLOSE: -- cgit v1.2.3