only transmit if flag is set
authorChristian Grothoff <christian@grothoff.org>
Mon, 17 Oct 2011 11:31:28 +0000 (11:31 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 17 Oct 2011 11:31:28 +0000 (11:31 +0000)
src/ats/gnunet-service-ats_performance.c

index 103040ea88e87ba433ae4b95380f49cc10710688..fd156da8498d41a99875b1b118ce3b2a407322fc 100644 (file)
@@ -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);
 }