From 12016bca6a6a34d779059fefa6ec854d4df684bf Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Mon, 21 Jul 2014 00:15:05 +0000 Subject: [PATCH] - when a connection is broken, remove it from tunnel, allow tunnel to update cstate and try to create new connections --- src/cadet/gnunet-service-cadet_connection.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cadet/gnunet-service-cadet_connection.c b/src/cadet/gnunet-service-cadet_connection.c index c9bd00224..8eefac411 100644 --- a/src/cadet/gnunet-service-cadet_connection.c +++ b/src/cadet/gnunet-service-cadet_connection.c @@ -1825,6 +1825,8 @@ GCC_handle_broken (void* cls, path_invalidate (c->path); GCP_notify_broken_link (endpoint, &msg->peer1, &msg->peer2); c->state = CADET_CONNECTION_DESTROYED; + GCT_remove_connection (t, c); + c->t = NULL; pending_msgs = c->pending_messages; /* GCP_connection_pop will destroy the connection when the last message -- 2.25.1