From: Christian Grothoff Date: Mon, 17 Oct 2011 11:31:28 +0000 (+0000) Subject: only transmit if flag is set X-Git-Tag: initial-import-from-subversion-38251~16472 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0ce64562edb77358bb4c7cea512eea28450e4146;p=oweals%2Fgnunet.git only transmit if flag is set --- diff --git a/src/ats/gnunet-service-ats_performance.c b/src/ats/gnunet-service-ats_performance.c index 103040ea8..fd156da84 100644 --- a/src/ats/gnunet-service-ats_performance.c +++ b/src/ats/gnunet-service-ats_performance.c @@ -182,10 +182,11 @@ GAS_performance_notify_clients (const struct GNUNET_PeerIdentity *peer, memcpy (addrp, plugin_addr, plugin_addr_len); strcpy (&addrp[plugin_addr_len], plugin_name); for (pc = pc_head; pc != NULL; pc = pc->next) - GNUNET_SERVER_notification_context_unicast (nc, - pc->client, - &msg->header, - GNUNET_YES); + if (pc->flag == START_FLAG_PERFORMANCE_WITH_PIC) + GNUNET_SERVER_notification_context_unicast (nc, + pc->client, + &msg->header, + GNUNET_YES); }