aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-03-29 08:03:53 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-03-29 08:03:53 +0000
commit75fe2bf35e4a37e59845d6ba0cc2f70352f56e5c (patch)
treeab476b506d274c9fa51af50d7a33c6c5c37660b9 /src/main.c
parent4c2aee3cf95ec99d367b9e003cf7ee0da42f1ccb (diff)
fixes unable to exit sylpheed in some case.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1585 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 04020cd0..129a17aa 100644
--- a/src/main.c
+++ b/src/main.c
@@ -705,6 +705,8 @@ void app_will_exit(gboolean force)
if (gtk_main_level() > 0)
gtk_main_quit();
+
+ exit(0);
}
#if 0
@@ -1101,6 +1103,7 @@ static gboolean lock_socket_input_cb(GIOChannel *source, GIOCondition condition,
g_free(status);
if (folders) g_ptr_array_free(folders, TRUE);
} else if (!strncmp(buf, "exit", 4)) {
+ fd_close(sock);
app_will_exit(TRUE);
}
@@ -1153,7 +1156,6 @@ static void remote_command_exec(void)
}
if (cmd.exit) {
app_will_exit(TRUE);
- exit(0);
}
}