projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1bb88e
)
allow for all CBs to be NULL, then do not send START
author
Christian Grothoff
<christian@grothoff.org>
Wed, 5 Oct 2011 13:22:35 +0000
(13:22 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Wed, 5 Oct 2011 13:22:35 +0000
(13:22 +0000)
src/transport/transport_api.c
patch
|
blob
|
history
diff --git
a/src/transport/transport_api.c
b/src/transport/transport_api.c
index bf37b4ac696b010d73d7ace6b38576da4cbadf13..bf66fad2a7bbb12bf50dfadf77303a676a341897 100644
(file)
--- 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)
GNUNET_assert (h->control_tail == NULL);
h->client = GNUNET_CLIENT_connect ("transport", h->cfg);
GNUNET_assert (h->client != NULL);
- schedule_control_transmit (h, sizeof (struct StartMessage), &send_start, h);
+ if ( (h->rec != NULL) ||
+ (h->nc_cb != NULL) ||
+ (h->nd_cb != NULL) )
+ schedule_control_transmit (h, sizeof (struct StartMessage), &send_start, h);
}