From f8148eb4ca75dd9b72f11b8b42b157c9534bc9ad Mon Sep 17 00:00:00 2001 From: David Brodski Date: Wed, 26 Oct 2011 09:54:31 +0000 Subject: Bugfix --- src/transport/plugin_transport_wlan.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/transport') diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c index b4d219f28..a740f758b 100644 --- a/src/transport/plugin_transport_wlan.c +++ b/src/transport/plugin_transport_wlan.c @@ -1809,15 +1809,18 @@ send_hello_beacon (struct Plugin *plugin) finish->msgstart = NULL; restart_helper(plugin, finish); + set_next_beacon_time (plugin); + } else { GNUNET_assert (bytes == size); + set_next_beacon_time (plugin); set_next_send (plugin); } GNUNET_free (msgheader); - set_next_beacon_time (plugin); + } /** @@ -2061,7 +2064,6 @@ do_transmit (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) if (GNUNET_TIME_absolute_get_remaining (plugin->beacon_time).rel_value == 0) { send_hello_beacon (plugin); - set_next_send(plugin); return; } -- cgit v1.2.3