aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2014-07-29 14:53:45 +0000
committerBart Polot <bart@net.in.tum.de>2014-07-29 14:53:45 +0000
commit382bf16eb6e6dbaad808d1330ec40b89922c9c8f (patch)
treed8d5c0b9584d4bb40240096c6a919a0cd75c35c3
parent5051244c80bd93e1599c5c39aeeefebaeef40d61 (diff)
- mark connections as to be destroyed by the _sent continuation
-rw-r--r--src/cadet/gnunet-service-cadet_connection.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cadet/gnunet-service-cadet_connection.c b/src/cadet/gnunet-service-cadet_connection.c
index 64a82371a0..06a227db72 100644
--- a/src/cadet/gnunet-service-cadet_connection.c
+++ b/src/cadet/gnunet-service-cadet_connection.c
@@ -1290,6 +1290,7 @@ connection_fwd_timeout (void *cls,
int destroyed;
t = c->t;
+ c->destroy = GNUNET_YES;
destroyed = GNUNET_NO;
neighbor = get_hop (c, GNUNET_NO);
@@ -1350,6 +1351,7 @@ connection_bck_timeout (void *cls,
int destroyed;
t = c->t;
+ c->destroy = GNUNET_YES;
destroyed = GNUNET_NO;
neighbor = get_hop (c, GNUNET_YES);
@@ -1885,6 +1887,7 @@ GCC_handle_broken (void* cls,
t = c->t;
fwd = is_fwd (c, id);
+ c->destroy = GNUNET_YES;
if (GCC_is_terminal (c, fwd))
{
struct GNUNET_MessageHeader *out_msg;
@@ -1926,7 +1929,6 @@ GCC_handle_broken (void* cls,
{
GNUNET_assert (NULL == GCC_send_prebuilt_message (message, 0, 0, c, fwd,
GNUNET_YES, NULL, NULL));
- c->destroy = GNUNET_YES;
connection_cancel_queues (c, !fwd);
}