From: Christian Grothoff Date: Mon, 25 Jun 2018 10:18:14 +0000 (+0200) Subject: make sure port is closed on shutdown X-Git-Tag: v0.11.0~357^2~8 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=62b7151f1a8ca7276a6ca7094fc846813dcebce4;p=oweals%2Fgnunet.git make sure port is closed on shutdown --- diff --git a/src/cadet/gnunet-cadet.c b/src/cadet/gnunet-cadet.c index 04a595a7b..a44882443 100644 --- a/src/cadet/gnunet-cadet.c +++ b/src/cadet/gnunet-cadet.c @@ -1,4 +1,4 @@ -/* +4/* This file is part of GNUnet. Copyright (C) 2012, 2017 GNUnet e.V. @@ -196,6 +196,11 @@ shutdown_task (void *cls) { GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Shutdown\n"); + if (NULL != lp) + { + GNUNET_CADET_close_port (lp); + lp = NULL; + } if (NULL != ch) { GNUNET_CADET_channel_destroy (ch);