diff options
-rw-r--r-- | src/mesh/mesh_tunnel_tree.c | 2 | ||||
-rw-r--r-- | src/mesh/mesh_tunnel_tree.h | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/mesh/mesh_tunnel_tree.c b/src/mesh/mesh_tunnel_tree.c index 50a8d57d4..83ce893dc 100644 --- a/src/mesh/mesh_tunnel_tree.c +++ b/src/mesh/mesh_tunnel_tree.c | |||
@@ -678,6 +678,8 @@ tree_notify_connection_broken (struct MeshTunnelTree *t, | |||
678 | /** | 678 | /** |
679 | * Deletes a peer from a tunnel, liberating all unused resources on the path to | 679 | * Deletes a peer from a tunnel, liberating all unused resources on the path to |
680 | * it. It shouldn't have children, if it has they will be destroyed as well. | 680 | * it. It shouldn't have children, if it has they will be destroyed as well. |
681 | * If the tree is not local and no longer has any paths, the root node will be | ||
682 | * destroyed and marked as NULL. | ||
681 | * | 683 | * |
682 | * @param t Tunnel tree to use. | 684 | * @param t Tunnel tree to use. |
683 | * @param peer Short ID of the peer to remove from the tunnel tree. | 685 | * @param peer Short ID of the peer to remove from the tunnel tree. |
diff --git a/src/mesh/mesh_tunnel_tree.h b/src/mesh/mesh_tunnel_tree.h index d0976579f..59a60839d 100644 --- a/src/mesh/mesh_tunnel_tree.h +++ b/src/mesh/mesh_tunnel_tree.h | |||
@@ -348,7 +348,10 @@ tree_notify_connection_broken (struct MeshTunnelTree *t, | |||
348 | 348 | ||
349 | 349 | ||
350 | /** | 350 | /** |
351 | * Deletes a peer from a tunnel, marking its children as disconnected. | 351 | * Deletes a peer from a tunnel, liberating all unused resources on the path to |
352 | * it. It shouldn't have children, if it has they will be destroyed as well. | ||
353 | * If the tree is not local and no longer has any paths, the root node will be | ||
354 | * destroyed and marked as NULL. | ||
352 | * | 355 | * |
353 | * @param t Tunnel tree to use. | 356 | * @param t Tunnel tree to use. |
354 | * @param peer Short ID of the peer to remove from the tunnel tree. | 357 | * @param peer Short ID of the peer to remove from the tunnel tree. |