aboutsummaryrefslogtreecommitdiff
path: root/src/gnunet_chat_lib_intern.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gnunet_chat_lib_intern.c')
-rw-r--r--src/gnunet_chat_lib_intern.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gnunet_chat_lib_intern.c b/src/gnunet_chat_lib_intern.c
index b9806a9..eaea196 100644
--- a/src/gnunet_chat_lib_intern.c
+++ b/src/gnunet_chat_lib_intern.c
@@ -34,7 +34,7 @@ task_handle_destruction (void *cls)
34 struct GNUNET_CHAT_InternalAccounts *accounts = handle->accounts_head; 34 struct GNUNET_CHAT_InternalAccounts *accounts = handle->accounts_head;
35 while (accounts) 35 while (accounts)
36 { 36 {
37 if ((accounts->op) && (accounts->account)) 37 if ((accounts->op) && (GNUNET_YES == accounts->wait_for_completion))
38 break; 38 break;
39 39
40 accounts = accounts->next; 40 accounts = accounts->next;
@@ -45,7 +45,7 @@ task_handle_destruction (void *cls)
45 handle->destruction = GNUNET_SCHEDULER_add_at_with_priority( 45 handle->destruction = GNUNET_SCHEDULER_add_at_with_priority(
46 GNUNET_TIME_absolute_add( 46 GNUNET_TIME_absolute_add(
47 GNUNET_TIME_absolute_get(), 47 GNUNET_TIME_absolute_get(),
48 GNUNET_TIME_relative_get_second_() 48 GNUNET_TIME_relative_get_millisecond_()
49 ), 49 ),
50 GNUNET_SCHEDULER_PRIORITY_IDLE, 50 GNUNET_SCHEDULER_PRIORITY_IDLE,
51 task_handle_destruction, 51 task_handle_destruction,