From: Christian Grothoff Date: Wed, 1 Feb 2017 08:36:14 +0000 (+0100) Subject: another channel-add destroy-cancel fix X-Git-Tag: taler-0.2.1~210 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=08ac9f58f96ede5158ca9ff371691390e87aeff4;p=oweals%2Fgnunet.git another channel-add destroy-cancel fix --- diff --git a/src/cadet/gnunet-service-cadet-new_tunnels.c b/src/cadet/gnunet-service-cadet-new_tunnels.c index cbc1303d9..c1532e835 100644 --- a/src/cadet/gnunet-service-cadet-new_tunnels.c +++ b/src/cadet/gnunet-service-cadet-new_tunnels.c @@ -1910,6 +1910,11 @@ GCT_add_channel (struct CadetTunnel *t, struct GNUNET_CADET_ChannelTunnelNumber ctn; ctn = get_next_free_ctn (t); + if (NULL != t->destroy_task) + { + GNUNET_SCHEDULER_cancel (t->destroy_task); + t->destroy_task = NULL; + } GNUNET_assert (GNUNET_YES == GNUNET_CONTAINER_multihashmap32_put (t->channels, ntohl (ctn.cn),