diff options
Diffstat (limited to 'src/fs/gnunet-fs-gtk.c')
-rw-r--r-- | src/fs/gnunet-fs-gtk.c | 5 |
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) | |||
99 | static void | 99 | static void |
100 | shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 100 | shutdown_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 | |||
116 | GNUNET_GTK_quit_cb (GObject * object, gpointer user_data) | 117 | GNUNET_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 | ||