aboutsummaryrefslogtreecommitdiff
path: root/src/conversation
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-04-30 08:17:37 +0000
committerChristian Grothoff <christian@grothoff.org>2016-04-30 08:17:37 +0000
commit95f9076a2139f5fb042b944a0658b6cda2fa35db (patch)
treeb0826a2a1dcf812e6b4450fe6b05d47cd53ae49d /src/conversation
parent7746f68db77b9ca3c4aaca24ab2ce5253461240b (diff)
downloadgnunet-95f9076a2139f5fb042b944a0658b6cda2fa35db.tar.gz
gnunet-95f9076a2139f5fb042b944a0658b6cda2fa35db.zip
implementing new scheduler shutdown semantics
Diffstat (limited to 'src/conversation')
-rw-r--r--src/conversation/gnunet-conversation-test.c5
-rw-r--r--src/conversation/gnunet-conversation.c4
-rw-r--r--src/conversation/gnunet-service-conversation.c9
3 files changed, 9 insertions, 9 deletions
diff --git a/src/conversation/gnunet-conversation-test.c b/src/conversation/gnunet-conversation-test.c
index fe6eae925..815c7ef11 100644
--- a/src/conversation/gnunet-conversation-test.c
+++ b/src/conversation/gnunet-conversation-test.c
@@ -204,9 +204,8 @@ run (void *cls, char *const *args, const char *cfgfile,
204 switch_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT, 204 switch_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT,
205 &switch_to_speaker, 205 &switch_to_speaker,
206 NULL); 206 NULL);
207 st = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, 207 st = GNUNET_SCHEDULER_add_shutdown (&do_shutdown,
208 &do_shutdown, 208 NULL);
209 NULL);
210 fprintf (stderr, 209 fprintf (stderr,
211 _("We will now be recording you for %s. After that time, the recording will be played back to you..."), 210 _("We will now be recording you for %s. After that time, the recording will be played back to you..."),
212 GNUNET_STRINGS_relative_time_to_string (TIMEOUT, GNUNET_YES)); 211 GNUNET_STRINGS_relative_time_to_string (TIMEOUT, GNUNET_YES));
diff --git a/src/conversation/gnunet-conversation.c b/src/conversation/gnunet-conversation.c
index 9000bcf3f..d899ee5ca 100644
--- a/src/conversation/gnunet-conversation.c
+++ b/src/conversation/gnunet-conversation.c
@@ -1249,8 +1249,8 @@ run (void *cls,
1249 handle_cmd_task = 1249 handle_cmd_task =
1250 GNUNET_SCHEDULER_add_with_priority (GNUNET_SCHEDULER_PRIORITY_UI, 1250 GNUNET_SCHEDULER_add_with_priority (GNUNET_SCHEDULER_PRIORITY_UI,
1251 &handle_command, NULL); 1251 &handle_command, NULL);
1252 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &do_stop_task, 1252 GNUNET_SCHEDULER_add_shutdown (&do_stop_task,
1253 NULL); 1253 NULL);
1254} 1254}
1255 1255
1256 1256
diff --git a/src/conversation/gnunet-service-conversation.c b/src/conversation/gnunet-service-conversation.c
index fdaa2999c..10f169105 100644
--- a/src/conversation/gnunet-service-conversation.c
+++ b/src/conversation/gnunet-service-conversation.c
@@ -1574,10 +1574,11 @@ run (void *cls,
1574 } 1574 }
1575 nc = GNUNET_SERVER_notification_context_create (server, 16); 1575 nc = GNUNET_SERVER_notification_context_create (server, 16);
1576 GNUNET_SERVER_add_handlers (server, server_handlers); 1576 GNUNET_SERVER_add_handlers (server, server_handlers);
1577 GNUNET_SERVER_disconnect_notify (server, &handle_client_disconnect, NULL); 1577 GNUNET_SERVER_disconnect_notify (server,
1578 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, 1578 &handle_client_disconnect,
1579 &do_shutdown, 1579 NULL);
1580 NULL); 1580 GNUNET_SCHEDULER_add_shutdown (&do_shutdown,
1581 NULL);
1581} 1582}
1582 1583
1583 1584