commit d94daecb6b5f08e82750ef63d09807dd67342190
parent bfc8be4dfc24e89ac6d6d4fe1e70f1dc67ee9afe
Author: Bart Polot <bart@net.in.tum.de>
Date: Mon, 15 Dec 2014 07:17:39 +0000
Fix message resend on connection timeout: mark connection as destroyed to avoid re-queueing in self.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/cadet/gnunet-service-cadet_connection.c b/src/cadet/gnunet-service-cadet_connection.c
@@ -1294,6 +1294,7 @@ connection_fwd_timeout (void *cls,
t = c->t;
c->destroy = GNUNET_YES;
+ c->state = CADET_CONNECTION_DESTROYED;
destroyed = GNUNET_NO;
neighbor = get_hop (c, GNUNET_NO);