From d7eb5e52b5fba7d31a39ac03aa19ece127f7662e Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 12 Jun 2013 10:41:19 +0000 Subject: -keep and drop are not needed here as we watch for disconnects --- src/ats/gnunet-service-ats_performance.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/ats/gnunet-service-ats_performance.c b/src/ats/gnunet-service-ats_performance.c index 2e74680e8..4164e5f0d 100644 --- a/src/ats/gnunet-service-ats_performance.c +++ b/src/ats/gnunet-service-ats_performance.c @@ -124,11 +124,11 @@ void GAS_performance_remove_client (struct GNUNET_SERVER_Client *client) { struct PerformanceClient *pc; + pc = find_client (client); if (NULL == pc) return; GNUNET_CONTAINER_DLL_remove (pc_head, pc_tail, pc); - GNUNET_SERVER_client_drop (client); GNUNET_free (pc); } @@ -313,13 +313,13 @@ GAS_performance_add_client (struct GNUNET_SERVER_Client *client, pc->client = client; pc->flag = flag; GNUNET_SERVER_notification_context_add (nc, client); - GNUNET_SERVER_client_keep (client); GNUNET_CONTAINER_DLL_insert (pc_head, pc_tail, pc); /* Send information about clients */ GAS_addresses_iterate_peers (GSA_addresses, &peer_it, pc); } + static void transmit_req_addr (struct AddressIteration *ai, const struct GNUNET_PeerIdentity *id, const char *plugin_name, @@ -332,7 +332,6 @@ static void transmit_req_addr (struct AddressIteration *ai, struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in) { - struct GNUNET_ATS_Information *atsp; struct PeerInformationMessage *msg; char *addrp; @@ -454,6 +453,7 @@ req_addr_peer_it (void *cls, } } + /** * Handle 'address list request' messages from clients. * -- cgit v1.2.3