- when a connection is broken, remove it from tunnel, allow tunnel to update cstate...
authorBart Polot <bart@net.in.tum.de>
Mon, 21 Jul 2014 00:15:05 +0000 (00:15 +0000)
committerBart Polot <bart@net.in.tum.de>
Mon, 21 Jul 2014 00:15:05 +0000 (00:15 +0000)
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