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.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/src/transport/gnunet-service-transport_clients.c b/src/transport/gnunet-service-transport_clients.c
index cea1dc14e..db863ae65 100644
--- a/src/transport/gnunet-service-transport_clients.c
+++ b/src/transport/gnunet-service-transport_clients.c
@@ -646,22 +646,12 @@ clients_handle_start (void *cls,
646 tc = setup_client (client); 646 tc = setup_client (client);
647 tc->send_payload = (0 != (2 & options)); 647 tc->send_payload = (0 != (2 & options));
648 hello = GST_hello_get (); 648 hello = GST_hello_get ();
649 if (NULL == hello) 649 if (NULL != hello)
650 {
651 /* We are during startup and should have no neighbours, hence
652 iteration with NULL must work. The HELLO will be sent to
653 all clients once it has been created, so this should happen
654 next anyway, and certainly before we get neighbours. */
655 GST_neighbours_iterate (NULL, NULL);
656 }
657 else
658 {
659 unicast (tc, 650 unicast (tc,
660 hello, 651 hello,
661 GNUNET_NO); 652 GNUNET_NO);
662 GST_neighbours_iterate (&notify_client_about_neighbour, 653 GST_neighbours_iterate (&notify_client_about_neighbour,
663 tc); 654 tc);
664 }
665 GNUNET_SERVER_receive_done (client, 655 GNUNET_SERVER_receive_done (client,
666 GNUNET_OK); 656 GNUNET_OK);
667} 657}