aboutsummaryrefslogtreecommitdiff
path: root/src/mesh
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2011-11-07 12:34:30 +0000
committerBart Polot <bart@net.in.tum.de>2011-11-07 12:34:30 +0000
commit2594f29af1da0339927a32165f71ae33198d2b9d (patch)
tree48bff4307a0c6e71b95a063eecfa08892a2fd16e /src/mesh
parent3a3fcef078d1266488b642a583f98bf6700f027f (diff)
downloadgnunet-2594f29af1da0339927a32165f71ae33198d2b9d.tar.gz
gnunet-2594f29af1da0339927a32165f71ae33198d2b9d.zip
Small fix, improved comment
Diffstat (limited to 'src/mesh')
-rw-r--r--src/mesh/gnunet-service-mesh.c5
1 files changed, 4 insertions, 1 deletions
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,
1449 for (i = 0; i < peer->ntunnels; i++) 1449 for (i = 0; i < peer->ntunnels; i++)
1450 { 1450 {
1451 d = tunnel_notify_connection_broken (peer->tunnels[i], p1, p2); 1451 d = tunnel_notify_connection_broken (peer->tunnels[i], p1, p2);
1452 if (0 == d) continue;
1452 /* TODO 1453 /* TODO
1453 * Problem: one or more peers have been deleted from the tunnel tree. 1454 * Problem: one or more peers have been deleted from the tunnel tree.
1454 * We don't know who they are to try to add them again. 1455 * 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,
1473 } 1474 }
1474 if (NULL != aux) 1475 if (NULL != aux)
1475 { 1476 {
1476 /* No callback, as peer will be already disconnected */ 1477 /* No callback, as peer will be already disconnected and a connection
1478 * scheduled by tunnel_notify_connection_broken.
1479 */
1477 tree_add_path (peer->tunnels[i]->tree, aux, NULL, NULL); 1480 tree_add_path (peer->tunnels[i]->tree, aux, NULL, NULL);
1478 } 1481 }
1479 else 1482 else