diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-06-12 10:41:19 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-06-12 10:41:19 +0000 |
commit | d7eb5e52b5fba7d31a39ac03aa19ece127f7662e (patch) | |
tree | 3b825b8e2dde242698879232591d6e4767051bca /src/ats/gnunet-service-ats_performance.c | |
parent | 492eda379aa3385ea9368b45ce6c4eb7587a181e (diff) | |
download | gnunet-d7eb5e52b5fba7d31a39ac03aa19ece127f7662e.tar.gz gnunet-d7eb5e52b5fba7d31a39ac03aa19ece127f7662e.zip |
-keep and drop are not needed here as we watch for disconnects
Diffstat (limited to 'src/ats/gnunet-service-ats_performance.c')
-rw-r--r-- | src/ats/gnunet-service-ats_performance.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 | |||
124 | GAS_performance_remove_client (struct GNUNET_SERVER_Client *client) | 124 | GAS_performance_remove_client (struct GNUNET_SERVER_Client *client) |
125 | { | 125 | { |
126 | struct PerformanceClient *pc; | 126 | struct PerformanceClient *pc; |
127 | |||
127 | pc = find_client (client); | 128 | pc = find_client (client); |
128 | if (NULL == pc) | 129 | if (NULL == pc) |
129 | return; | 130 | return; |
130 | GNUNET_CONTAINER_DLL_remove (pc_head, pc_tail, pc); | 131 | GNUNET_CONTAINER_DLL_remove (pc_head, pc_tail, pc); |
131 | GNUNET_SERVER_client_drop (client); | ||
132 | GNUNET_free (pc); | 132 | GNUNET_free (pc); |
133 | } | 133 | } |
134 | 134 | ||
@@ -313,13 +313,13 @@ GAS_performance_add_client (struct GNUNET_SERVER_Client *client, | |||
313 | pc->client = client; | 313 | pc->client = client; |
314 | pc->flag = flag; | 314 | pc->flag = flag; |
315 | GNUNET_SERVER_notification_context_add (nc, client); | 315 | GNUNET_SERVER_notification_context_add (nc, client); |
316 | GNUNET_SERVER_client_keep (client); | ||
317 | GNUNET_CONTAINER_DLL_insert (pc_head, pc_tail, pc); | 316 | GNUNET_CONTAINER_DLL_insert (pc_head, pc_tail, pc); |
318 | 317 | ||
319 | /* Send information about clients */ | 318 | /* Send information about clients */ |
320 | GAS_addresses_iterate_peers (GSA_addresses, &peer_it, pc); | 319 | GAS_addresses_iterate_peers (GSA_addresses, &peer_it, pc); |
321 | } | 320 | } |
322 | 321 | ||
322 | |||
323 | static void transmit_req_addr (struct AddressIteration *ai, | 323 | static void transmit_req_addr (struct AddressIteration *ai, |
324 | const struct GNUNET_PeerIdentity *id, | 324 | const struct GNUNET_PeerIdentity *id, |
325 | const char *plugin_name, | 325 | const char *plugin_name, |
@@ -332,7 +332,6 @@ static void transmit_req_addr (struct AddressIteration *ai, | |||
332 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in) | 332 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in) |
333 | 333 | ||
334 | { | 334 | { |
335 | |||
336 | struct GNUNET_ATS_Information *atsp; | 335 | struct GNUNET_ATS_Information *atsp; |
337 | struct PeerInformationMessage *msg; | 336 | struct PeerInformationMessage *msg; |
338 | char *addrp; | 337 | char *addrp; |
@@ -454,6 +453,7 @@ req_addr_peer_it (void *cls, | |||
454 | } | 453 | } |
455 | } | 454 | } |
456 | 455 | ||
456 | |||
457 | /** | 457 | /** |
458 | * Handle 'address list request' messages from clients. | 458 | * Handle 'address list request' messages from clients. |
459 | * | 459 | * |