From: Bart Polot Date: Mon, 7 Nov 2011 12:34:30 +0000 (+0000) Subject: Small fix, improved comment X-Git-Tag: initial-import-from-subversion-38251~16015 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2594f29af1da0339927a32165f71ae33198d2b9d;p=oweals%2Fgnunet.git Small fix, improved comment --- diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c index f1bef6b4d..e3a8b3f0e 100644 --- a/src/mesh/gnunet-service-mesh.c +++ b/src/mesh/gnunet-service-mesh.c @@ -1449,6 +1449,7 @@ peer_info_remove_path (struct MeshPeerInfo *peer, GNUNET_PEER_Id p1, for (i = 0; i < peer->ntunnels; i++) { d = tunnel_notify_connection_broken (peer->tunnels[i], p1, p2); + if (0 == d) continue; /* TODO * Problem: one or more peers have been deleted from the tunnel tree. * We don't know who they are to try to add them again. @@ -1473,7 +1474,9 @@ peer_info_remove_path (struct MeshPeerInfo *peer, GNUNET_PEER_Id p1, } if (NULL != aux) { - /* No callback, as peer will be already disconnected */ + /* No callback, as peer will be already disconnected and a connection + * scheduled by tunnel_notify_connection_broken. + */ tree_add_path (peer->tunnels[i]->tree, aux, NULL, NULL); } else