From e613a26ba7015bb5964a6e7e782f0b1647657dca Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Mon, 15 Dec 2014 07:17:23 +0000 Subject: [PATCH] - log --- src/cadet/gnunet-service-cadet_tunnel.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/cadet/gnunet-service-cadet_tunnel.c b/src/cadet/gnunet-service-cadet_tunnel.c index 93c111994..6dfc05be6 100644 --- a/src/cadet/gnunet-service-cadet_tunnel.c +++ b/src/cadet/gnunet-service-cadet_tunnel.c @@ -612,7 +612,7 @@ select_key (const struct CadetTunnel *t) } else { - LOG (GNUNET_ERROR_TYPE_DEBUG, " using new key\n"); + LOG (GNUNET_ERROR_TYPE_DEBUG, " using new key (old key too old)\n"); key = &t->e_key; } } @@ -903,10 +903,13 @@ finish_kx (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) { struct CadetTunnel *t = cls; + LOG (GNUNET_ERROR_TYPE_INFO, "finish KX for %s\n", GCT_2s (t)); + if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) + { + LOG (GNUNET_ERROR_TYPE_INFO, " shutdown\n"); return; - - LOG (GNUNET_ERROR_TYPE_INFO, "finish KX for %s\n", GCT_2s (t)); + } GNUNET_free (t->kx_ctx); t->kx_ctx = NULL; -- 2.25.1