aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_wlan.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-12-18 15:06:30 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-12-18 15:06:30 +0000
commitdf5464844b69488e0e14759a0461360ad164e509 (patch)
treed46dc2076c4143726a7a34752a1faecc0aeb3335 /src/transport/plugin_transport_wlan.c
parent3b5bda2f04b755d527fcaa69f71ee66f83e3a324 (diff)
downloadgnunet-df5464844b69488e0e14759a0461360ad164e509.tar.gz
gnunet-df5464844b69488e0e14759a0461360ad164e509.zip
new timeout tests for WLAN and bluetooth
session timeout for WLAN
Diffstat (limited to 'src/transport/plugin_transport_wlan.c')
-rw-r--r--src/transport/plugin_transport_wlan.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c
index 212394248..6f5c66ad3 100644
--- a/src/transport/plugin_transport_wlan.c
+++ b/src/transport/plugin_transport_wlan.c
@@ -1861,7 +1861,11 @@ wlan_plugin_update_session_timeout (void *cls,
1861 const struct GNUNET_PeerIdentity *peer, 1861 const struct GNUNET_PeerIdentity *peer,
1862 struct Session *session) 1862 struct Session *session)
1863{ 1863{
1864 if (session->timeout_task != GNUNET_SCHEDULER_NO_TASK)
1865 GNUNET_SCHEDULER_cancel (session->timeout_task);
1864 1866
1867 session->timeout_task = GNUNET_SCHEDULER_add_delayed (
1868 GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT, &session_timeout, session);
1865} 1869}
1866 1870
1867/** 1871/**