aboutsummaryrefslogtreecommitdiff
path: root/src/transport
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2020-11-30 13:19:49 +0900
committerMartin Schanzenbach <schanzen@gnunet.org>2020-11-30 13:19:49 +0900
commit430ed7f8b4b33295e84990ec97cbb71431cef923 (patch)
treef929c74c575755e771258917b4f7e11b844dd3b6 /src/transport
parent97782d1a85e43d55626b150c06b6479afd8d20d6 (diff)
downloadgnunet-430ed7f8b4b33295e84990ec97cbb71431cef923.tar.gz
gnunet-430ed7f8b4b33295e84990ec97cbb71431cef923.zip
-fix communicator cleanup
Diffstat (limited to 'src/transport')
-rw-r--r--src/transport/gnunet-communicator-udp.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/transport/gnunet-communicator-udp.c b/src/transport/gnunet-communicator-udp.c
index 849adf4ab..073b1ea02 100644
--- a/src/transport/gnunet-communicator-udp.c
+++ b/src/transport/gnunet-communicator-udp.c
@@ -1668,8 +1668,7 @@ static void
1668kce_generate_cb (void *cls) 1668kce_generate_cb (void *cls)
1669{ 1669{
1670 struct SharedSecret *ss = cls; 1670 struct SharedSecret *ss = cls;
1671 1671 kce_task = NULL;
1672
1673 1672
1674 if (ss->sender->acks_available < KCN_TARGET) 1673 if (ss->sender->acks_available < KCN_TARGET)
1675 { 1674 {
@@ -1699,6 +1698,7 @@ static void
1699kce_generate_rekey_cb (void *cls) 1698kce_generate_rekey_cb (void *cls)
1700{ 1699{
1701 struct SharedSecret *ss = cls; 1700 struct SharedSecret *ss = cls;
1701 kce_task_rekey = NULL;
1702 1702
1703 if (NULL == kce_task) 1703 if (NULL == kce_task)
1704 { 1704 {
@@ -3132,6 +3132,21 @@ do_shutdown (void *cls)
3132 GNUNET_SCHEDULER_cancel (broadcast_task); 3132 GNUNET_SCHEDULER_cancel (broadcast_task);
3133 broadcast_task = NULL; 3133 broadcast_task = NULL;
3134 } 3134 }
3135 if (NULL != kce_task_rekey)
3136 {
3137 GNUNET_SCHEDULER_cancel (kce_task_rekey);
3138 kce_task_rekey = NULL;
3139 }
3140 if (NULL != kce_task)
3141 {
3142 GNUNET_SCHEDULER_cancel (kce_task);
3143 kce_task = NULL;
3144 }
3145 if (NULL != timeout_task)
3146 {
3147 GNUNET_SCHEDULER_cancel (timeout_task);
3148 timeout_task = NULL;
3149 }
3135 if (NULL != read_task) 3150 if (NULL != read_task)
3136 { 3151 {
3137 GNUNET_SCHEDULER_cancel (read_task); 3152 GNUNET_SCHEDULER_cancel (read_task);