aboutsummaryrefslogtreecommitdiff
path: root/src/ClientEvent.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-10 19:13:00 +0100
committerMax Kellermann <max@duempel.org>2013-01-14 09:15:49 +0100
commite83f805b8fa34db8ac0b885d3fb78c0e6437c908 (patch)
tree25c78bb3b016875aa9df2ec5449c623148083531 /src/ClientEvent.cxx
parentbe98afe34d550a322adea78f92f1fd2088408e96 (diff)
Main, IOThread: move GMainLoop setup code to class EventLoop
Diffstat (limited to 'src/ClientEvent.cxx')
-rw-r--r--src/ClientEvent.cxx3
1 files changed, 2 insertions, 1 deletions
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 <assert.h>
@@ -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: