From 10e15b413ce8aa828dc49040c9e545c07edee86b Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Sat, 12 Nov 2011 01:01:33 +0000 Subject: [PATCH] Fixed issue related to mantis #1896, when a path ack of an already connected peer would cause client notification about new peer --- src/mesh/gnunet-service-mesh.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c index ef1ba1f8a..14dd5d1fd 100644 --- a/src/mesh/gnunet-service-mesh.c +++ b/src/mesh/gnunet-service-mesh.c @@ -3074,8 +3074,11 @@ handle_mesh_path_ack (void *cls, const struct GNUNET_PeerIdentity *peer, t->dht_get_type = NULL; } peer_info = peer_info_get (&msg->peer_id); - tree_set_status (t->tree, peer_info->id, MESH_PEER_READY); - send_client_peer_connected (t, peer_info->id); + if (tree_get_status(t->tree, peer_info->id) != MESH_PEER_READY) + { + tree_set_status (t->tree, peer_info->id, MESH_PEER_READY); + send_client_peer_connected (t, peer_info->id); + } return GNUNET_OK; } -- 2.25.1