From: Bart Polot Date: Sat, 12 Nov 2011 01:01:33 +0000 (+0000) Subject: Fixed issue related to mantis #1896, when a path ack of an already connected peer... X-Git-Tag: initial-import-from-subversion-38251~15948 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=10e15b413ce8aa828dc49040c9e545c07edee86b;p=oweals%2Fgnunet.git Fixed issue related to mantis #1896, when a path ack of an already connected peer would cause client notification about new peer --- 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; }