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.
}
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