aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-tng.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/gnunet-service-tng.c')
-rw-r--r--src/transport/gnunet-service-tng.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/transport/gnunet-service-tng.c b/src/transport/gnunet-service-tng.c
index f67bc0db5..e7c320eb1 100644
--- a/src/transport/gnunet-service-tng.c
+++ b/src/transport/gnunet-service-tng.c
@@ -3259,7 +3259,10 @@ client_connect_cb (void *cls,
3259 tc->client = client; 3259 tc->client = client;
3260 tc->mq = mq; 3260 tc->mq = mq;
3261 GNUNET_CONTAINER_DLL_insert (clients_head, clients_tail, tc); 3261 GNUNET_CONTAINER_DLL_insert (clients_head, clients_tail, tc);
3262 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Client %p connected\n", tc); 3262 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
3263 "Client %p of type %u connected\n",
3264 tc,
3265 tc->type);
3263 return tc; 3266 return tc;
3264} 3267}
3265 3268
@@ -5071,6 +5074,7 @@ handle_client_send (void *cls, const struct OutboundMessage *obm)
5071 vl->pending_msg_tail, 5074 vl->pending_msg_tail,
5072 pm); 5075 pm);
5073 check_vl_transmission (vl); 5076 check_vl_transmission (vl);
5077 GNUNET_SERVICE_client_continue (tc->client);
5074} 5078}
5075 5079
5076 5080
@@ -10370,6 +10374,8 @@ do_shutdown (void *cls)
10370{ 10374{
10371 struct LearnLaunchEntry *lle; 10375 struct LearnLaunchEntry *lle;
10372 10376
10377 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
10378 "shutdown logic\n");
10373 (void) cls; 10379 (void) cls;
10374 GNUNET_CONTAINER_multipeermap_iterate (neighbours, 10380 GNUNET_CONTAINER_multipeermap_iterate (neighbours,
10375 &free_neighbour_cb, NULL); 10381 &free_neighbour_cb, NULL);
@@ -10450,7 +10456,9 @@ shutdown_task (void *cls)
10450{ 10456{
10451 in_shutdown = GNUNET_YES; 10457 in_shutdown = GNUNET_YES;
10452 10458
10453 if (NULL == clients_head) 10459 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
10460 "Shutdown task executed\n");
10461 if (NULL != clients_head)
10454 { 10462 {
10455 for (struct TransportClient *tc = clients_head; NULL != tc; tc = tc->next) 10463 for (struct TransportClient *tc = clients_head; NULL != tc; tc = tc->next)
10456 { 10464 {
@@ -10459,7 +10467,8 @@ shutdown_task (void *cls)
10459 tc->type); 10467 tc->type);
10460 } 10468 }
10461 } 10469 }
10462 do_shutdown (cls); 10470 else
10471 do_shutdown (cls);
10463 10472
10464} 10473}
10465 10474