- when a connection is broken, remove it from tunnel, allow tunnel to update cstate...
[oweals/gnunet.git] / src / cadet / gnunet-service-cadet_connection.c
index c9bd00224397f2022405ff19c1463d8983eeb38a..8eefac411409317797aa3a72457ee9571eb27aa9 100644 (file)
@@ -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