diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-05 13:22:35 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-05 13:22:35 +0000 |
commit | b7c627ca0e7896f9942b4d9251c530f5867cd14f (patch) | |
tree | 896511ab943250ef4b871c007b370d4edbeff689 /src/transport/transport_api.c | |
parent | e1bb88e67a0a55e5f90e4bc51d5517e4bce63f76 (diff) | |
download | gnunet-b7c627ca0e7896f9942b4d9251c530f5867cd14f.tar.gz gnunet-b7c627ca0e7896f9942b4d9251c530f5867cd14f.zip |
allow for all CBs to be NULL, then do not send START
Diffstat (limited to 'src/transport/transport_api.c')
-rw-r--r-- | src/transport/transport_api.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/transport/transport_api.c b/src/transport/transport_api.c index bf37b4ac6..bf66fad2a 100644 --- a/src/transport/transport_api.c +++ b/src/transport/transport_api.c | |||
@@ -893,7 +893,10 @@ reconnect (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
893 | GNUNET_assert (h->control_tail == NULL); | 893 | GNUNET_assert (h->control_tail == NULL); |
894 | h->client = GNUNET_CLIENT_connect ("transport", h->cfg); | 894 | h->client = GNUNET_CLIENT_connect ("transport", h->cfg); |
895 | GNUNET_assert (h->client != NULL); | 895 | GNUNET_assert (h->client != NULL); |
896 | schedule_control_transmit (h, sizeof (struct StartMessage), &send_start, h); | 896 | if ( (h->rec != NULL) || |
897 | (h->nc_cb != NULL) || | ||
898 | (h->nd_cb != NULL) ) | ||
899 | schedule_control_transmit (h, sizeof (struct StartMessage), &send_start, h); | ||
897 | } | 900 | } |
898 | 901 | ||
899 | 902 | ||