diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-04-20 08:19:03 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-04-20 08:19:03 +0000 |
commit | 442b1d33c81681e20ed9684b8503ff9471fca38c (patch) | |
tree | 36e73d330a1a86c078f4a532f4dd02347c32363a /src/transport/plugin_transport_wlan.c | |
parent | d0d88da8754bd5184be826dc4d271c5abeece0c5 (diff) | |
download | gnunet-442b1d33c81681e20ed9684b8503ff9471fca38c.tar.gz gnunet-442b1d33c81681e20ed9684b8503ff9471fca38c.zip |
SHUTDOWN
Diffstat (limited to 'src/transport/plugin_transport_wlan.c')
-rw-r--r-- | src/transport/plugin_transport_wlan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c index f53e4b648..441989165 100644 --- a/src/transport/plugin_transport_wlan.c +++ b/src/transport/plugin_transport_wlan.c | |||
@@ -780,7 +780,7 @@ delay_fragment_task(void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
780 | struct Plugin * plugin = cls; | 780 | struct Plugin * plugin = cls; |
781 | plugin->server_write_delay_task = GNUNET_SCHEDULER_NO_TASK; | 781 | plugin->server_write_delay_task = GNUNET_SCHEDULER_NO_TASK; |
782 | 782 | ||
783 | if (tc->reason == GNUNET_SCHEDULER_REASON_SHUTDOWN) | 783 | if ( (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0) |
784 | return; | 784 | return; |
785 | 785 | ||
786 | // GNUNET_TIME_UNIT_FOREVER_REL is needed to clean up old msg | 786 | // GNUNET_TIME_UNIT_FOREVER_REL is needed to clean up old msg |
@@ -2884,7 +2884,7 @@ wlan_plugin_helper_read(void *cls, | |||
2884 | struct Plugin *plugin = cls; | 2884 | struct Plugin *plugin = cls; |
2885 | plugin->server_read_task = GNUNET_SCHEDULER_NO_TASK; | 2885 | plugin->server_read_task = GNUNET_SCHEDULER_NO_TASK; |
2886 | 2886 | ||
2887 | if (tc->reason == GNUNET_SCHEDULER_REASON_SHUTDOWN) | 2887 | if ( (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0) |
2888 | return; | 2888 | return; |
2889 | 2889 | ||
2890 | char mybuf[WLAN_MTU + sizeof(struct GNUNET_MessageHeader)]; | 2890 | char mybuf[WLAN_MTU + sizeof(struct GNUNET_MessageHeader)]; |