aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/transport/plugin_transport_wlan.c6
1 files changed, 4 insertions, 2 deletions
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)
1809 finish->msgstart = NULL; 1809 finish->msgstart = NULL;
1810 restart_helper(plugin, finish); 1810 restart_helper(plugin, finish);
1811 1811
1812 set_next_beacon_time (plugin);
1813
1812 } 1814 }
1813 else 1815 else
1814 { 1816 {
1815 GNUNET_assert (bytes == size); 1817 GNUNET_assert (bytes == size);
1818 set_next_beacon_time (plugin);
1816 set_next_send (plugin); 1819 set_next_send (plugin);
1817 } 1820 }
1818 GNUNET_free (msgheader); 1821 GNUNET_free (msgheader);
1819 1822
1820 set_next_beacon_time (plugin); 1823
1821} 1824}
1822 1825
1823/** 1826/**
@@ -2061,7 +2064,6 @@ do_transmit (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
2061 if (GNUNET_TIME_absolute_get_remaining (plugin->beacon_time).rel_value == 0) 2064 if (GNUNET_TIME_absolute_get_remaining (plugin->beacon_time).rel_value == 0)
2062 { 2065 {
2063 send_hello_beacon (plugin); 2066 send_hello_beacon (plugin);
2064 set_next_send(plugin);
2065 return; 2067 return;
2066 } 2068 }
2067 2069