aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_clients.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/gnunet-service-transport_clients.c')
-rw-r--r--src/transport/gnunet-service-transport_clients.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/transport/gnunet-service-transport_clients.c b/src/transport/gnunet-service-transport_clients.c
index 71c8c0054..02d2428d3 100644
--- a/src/transport/gnunet-service-transport_clients.c
+++ b/src/transport/gnunet-service-transport_clients.c
@@ -1366,18 +1366,24 @@ GST_clients_broadcast (const struct GNUNET_MessageHeader *msg,
1366 int may_drop) 1366 int may_drop)
1367{ 1367{
1368 struct TransportClient *tc; 1368 struct TransportClient *tc;
1369 int done;
1369 1370
1370 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1371 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1371 "Asked to broadcast message of type %u with %u bytes\n", 1372 "Asked to broadcast message of type %u with %u bytes\n",
1372 (unsigned int) ntohs (msg->type), 1373 (unsigned int) ntohs (msg->type),
1373 (unsigned int) ntohs (msg->size)); 1374 (unsigned int) ntohs (msg->size));
1375 done = GNUNET_NO;
1374 for (tc = clients_head; NULL != tc; tc = tc->next) 1376 for (tc = clients_head; NULL != tc; tc = tc->next)
1375 { 1377 {
1376 if ( (GNUNET_YES == may_drop) && 1378 if ( (GNUNET_YES == may_drop) &&
1377 (GNUNET_YES != tc->send_payload) ) 1379 (GNUNET_YES != tc->send_payload) )
1378 continue; /* skip, this client does not care about payload */ 1380 continue; /* skip, this client does not care about payload */
1379 unicast (tc, msg, may_drop); 1381 unicast (tc, msg, may_drop);
1382 done = GNUNET_YES;
1380 } 1383 }
1384 if (GNUNET_NO == done)
1385 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
1386 "Message not delivered, is CORE service up?\n");
1381} 1387}
1382 1388
1383 1389