aboutsummaryrefslogtreecommitdiffstats
path: root/src/client.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client.c b/src/client.c
index 77fd6c895..c170b1162 100644
--- a/src/client.c
+++ b/src/client.c
@@ -25,6 +25,7 @@
#include "main_notify.h"
#include "dlist.h"
#include "idle.h"
+#include "main.h"
#include "../config.h"
@@ -471,7 +472,7 @@ client_in_event(G_GNUC_UNUSED GIOChannel *source,
switch (ret) {
case COMMAND_RETURN_KILL:
client_close(client);
- g_main_loop_quit(NULL);
+ g_main_loop_quit(main_loop);
return false;
case COMMAND_RETURN_CLOSE: