aboutsummaryrefslogtreecommitdiff
path: root/src/cadet
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-08-09 16:35:32 +0200
committerChristian Grothoff <christian@grothoff.org>2018-08-09 16:35:32 +0200
commit7caba06019ecc5775d3dbb513b70f52f620affb5 (patch)
tree93696c0ab1a31e3744fc375015fb0b6dbd95003d /src/cadet
parent1ded1c1bb3bcb16d1770f03b299fcaa0a0c2d813 (diff)
downloadgnunet-7caba06019ecc5775d3dbb513b70f52f620affb5.tar.gz
gnunet-7caba06019ecc5775d3dbb513b70f52f620affb5.zip
change CADET channel destroy API to not call the callback if the client initiated the channel's destruction
Diffstat (limited to 'src/cadet')
-rw-r--r--src/cadet/cadet_api.c3
1 files changed, 2 insertions, 1 deletions
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)
1273/** 1273/**
1274 * Destroy an existing channel. 1274 * Destroy an existing channel.
1275 * 1275 *
1276 * The existing end callback for the channel will be called immediately. 1276 * The existing end callback for the channel will NOT be called.
1277 * Any pending outgoing messages will be sent but no incoming messages will be 1277 * Any pending outgoing messages will be sent but no incoming messages will be
1278 * accepted and no data callbacks will be called. 1278 * accepted and no data callbacks will be called.
1279 * 1279 *
@@ -1296,6 +1296,7 @@ GNUNET_CADET_channel_destroy (struct GNUNET_CADET_Channel *channel)
1296 } 1296 }
1297 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 1297 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
1298 "Destroying channel due to GNUNET_CADET_channel_destroy()\n"); 1298 "Destroying channel due to GNUNET_CADET_channel_destroy()\n");
1299 channel->disconnects = NULL;
1299 destroy_channel (channel); 1300 destroy_channel (channel);
1300} 1301}
1301 1302