diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-02-10 00:00:56 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-02-10 00:00:56 +0000 |
commit | e649f10af79eb62bdd1eb0d358538779e3f49235 (patch) | |
tree | 8a0a2e77305018be8dd5c85027018da09d569b2a /src/transport/gnunet-service-transport_clients.c | |
parent | 98d966344028d236cc1296ec1fcedb8891774604 (diff) | |
download | gnunet-e649f10af79eb62bdd1eb0d358538779e3f49235.tar.gz gnunet-e649f10af79eb62bdd1eb0d358538779e3f49235.zip |
-fix
Diffstat (limited to 'src/transport/gnunet-service-transport_clients.c')
-rw-r--r-- | src/transport/gnunet-service-transport_clients.c | 16 |
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 (¬ify_client_about_neighbour, | 653 | GST_neighbours_iterate (¬ify_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 | } |