diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-04-30 08:17:37 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-04-30 08:17:37 +0000 |
commit | 407940eab281ad623c1d5263d8aaf2d4032fa27d (patch) | |
tree | ec6a8dce09ea921df20cd25dbfe85e5c222f6696 /src/fs | |
parent | b25fa8589635010a74304dbca9678a3ca5cdfd7d (diff) | |
download | gnunet-gtk-407940eab281ad623c1d5263d8aaf2d4032fa27d.tar.gz gnunet-gtk-407940eab281ad623c1d5263d8aaf2d4032fa27d.zip |
implementing new scheduler shutdown semantics
Diffstat (limited to 'src/fs')
-rw-r--r-- | src/fs/gnunet-fs-gtk.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/fs/gnunet-fs-gtk.c b/src/fs/gnunet-fs-gtk.c index 58db7609..d7266eac 100644 --- a/src/fs/gnunet-fs-gtk.c +++ b/src/fs/gnunet-fs-gtk.c | |||
@@ -337,10 +337,7 @@ GNUNET_FS_GTK_delete_event_cb (GtkWidget *object, | |||
337 | * just to be sure it is dead (if it isn't, application will hang up). | 337 | * just to be sure it is dead (if it isn't, application will hang up). |
338 | */ | 338 | */ |
339 | GNUNET_SCHEDULER_shutdown (); | 339 | GNUNET_SCHEDULER_shutdown (); |
340 | |||
341 | GNUNET_GTK_tray_icon_destroy (); | 340 | GNUNET_GTK_tray_icon_destroy (); |
342 | GNUNET_SCHEDULER_add_with_priority (GNUNET_SCHEDULER_PRIORITY_IDLE, | ||
343 | &shutdown_task, NULL); | ||
344 | } | 341 | } |
345 | 342 | ||
346 | 343 | ||
@@ -842,10 +839,7 @@ run (void *cls) | |||
842 | argv[i]); | 839 | argv[i]); |
843 | } | 840 | } |
844 | } | 841 | } |
845 | 842 | GNUNET_SCHEDULER_add_shutdown (&shutdown_task, NULL); | |
846 | |||
847 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, | ||
848 | &shutdown_task, NULL); | ||
849 | } | 843 | } |
850 | 844 | ||
851 | 845 | ||