From: Bart Polot Date: Wed, 17 Jun 2015 09:29:04 +0000 (+0000) Subject: - log X-Git-Tag: initial-import-from-subversion-38251~1737 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8510aa3ca2bffb2bbc498958004becbb8f88e4cb;p=oweals%2Fgnunet.git - log --- diff --git a/src/cadet/cadet_path.c b/src/cadet/cadet_path.c index 575509111..16e55aa0f 100644 --- a/src/cadet/cadet_path.c +++ b/src/cadet/cadet_path.c @@ -48,6 +48,8 @@ path_destroy_delayed (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) struct CadetPeer *peer; LOG (GNUNET_ERROR_TYPE_INFO, "Destroy delayed %p (%u)\n", path, path->length); + if ((GNUNET_SCHEDULER_REASON_SHUTDOWN & tc->reason) != 0) + return; path->path_delete = NULL; peer = GCP_get_short (path->peers[path->length - 1]); if (2 < path->length) @@ -75,6 +77,7 @@ path_new (unsigned int length) p->length = length; p->peers = GNUNET_malloc (length * sizeof (GNUNET_PEER_Id)); } + LOG (GNUNET_ERROR_TYPE_INFO, "New path %p (%u)\n", path, path->length); return p; }