diff options
author | David Brodski <david@brodski.eu> | 2011-10-26 09:54:31 +0000 |
---|---|---|
committer | David Brodski <david@brodski.eu> | 2011-10-26 09:54:31 +0000 |
commit | f8148eb4ca75dd9b72f11b8b42b157c9534bc9ad (patch) | |
tree | 0a63a92c6728896a065f4f0d7ac5a4137c0baeb5 /src/transport/plugin_transport_wlan.c | |
parent | 325e114bbc9c47b20d6b2120b762cba269aaa756 (diff) | |
download | gnunet-f8148eb4ca75dd9b72f11b8b42b157c9534bc9ad.tar.gz gnunet-f8148eb4ca75dd9b72f11b8b42b157c9534bc9ad.zip |
Bugfix
Diffstat (limited to 'src/transport/plugin_transport_wlan.c')
-rw-r--r-- | src/transport/plugin_transport_wlan.c | 6 |
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 | ||