aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-fs-gtk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-fs-gtk.c')
-rw-r--r--src/fs/gnunet-fs-gtk.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fs/gnunet-fs-gtk.c b/src/fs/gnunet-fs-gtk.c
index fca53a6d..67a7059f 100644
--- a/src/fs/gnunet-fs-gtk.c
+++ b/src/fs/gnunet-fs-gtk.c
@@ -99,6 +99,7 @@ GNUNET_FS_GTK_get_main_window_object (const char *name)
99static void 99static void
100shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 100shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
101{ 101{
102 GNUNET_GTK_main_loop_quit (ml);
102 if (fs != NULL) 103 if (fs != NULL)
103 { 104 {
104 GNUNET_FS_stop (fs); 105 GNUNET_FS_stop (fs);
@@ -116,8 +117,8 @@ void
116GNUNET_GTK_quit_cb (GObject * object, gpointer user_data) 117GNUNET_GTK_quit_cb (GObject * object, gpointer user_data)
117{ 118{
118 GNUNET_GTK_tray_icon_destroy (); 119 GNUNET_GTK_tray_icon_destroy ();
119 GNUNET_GTK_main_loop_quit (ml); 120 GNUNET_SCHEDULER_add_with_priority (GNUNET_SCHEDULER_PRIORITY_IDLE,
120 GNUNET_SCHEDULER_add_now (&shutdown_task, NULL); 121 &shutdown_task, NULL);
121} 122}
122 123
123 124