From 7caba06019ecc5775d3dbb513b70f52f620affb5 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 9 Aug 2018 16:35:32 +0200 Subject: change CADET channel destroy API to not call the callback if the client initiated the channel's destruction --- src/cadet/cadet_api.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/cadet') diff --git a/src/cadet/cadet_api.c b/src/cadet/cadet_api.c index 85a8be522..980b9abbf 100644 --- a/src/cadet/cadet_api.c +++ b/src/cadet/cadet_api.c @@ -1273,7 +1273,7 @@ GNUNET_CADET_close_port (struct GNUNET_CADET_Port *p) /** * Destroy an existing channel. * - * The existing end callback for the channel will be called immediately. + * The existing end callback for the channel will NOT be called. * Any pending outgoing messages will be sent but no incoming messages will be * accepted and no data callbacks will be called. * @@ -1296,6 +1296,7 @@ GNUNET_CADET_channel_destroy (struct GNUNET_CADET_Channel *channel) } GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Destroying channel due to GNUNET_CADET_channel_destroy()\n"); + channel->disconnects = NULL; destroy_channel (channel); } -- cgit v1.2.3