aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_bluetooth.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-12-18 15:19:37 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-12-18 15:19:37 +0000
commit4d80dc1d5536ad26d19c69d920dcffe84d93cf07 (patch)
tree93a32cb5576a707f1742dbd9263417ad76305eab /src/transport/plugin_transport_bluetooth.c
parentea34d2bd85d17841962d50177b1f35ae158ab3ec (diff)
downloadgnunet-4d80dc1d5536ad26d19c69d920dcffe84d93cf07.tar.gz
gnunet-4d80dc1d5536ad26d19c69d920dcffe84d93cf07.zip
tests and session timeout for bt
Diffstat (limited to 'src/transport/plugin_transport_bluetooth.c')
-rw-r--r--src/transport/plugin_transport_bluetooth.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/transport/plugin_transport_bluetooth.c b/src/transport/plugin_transport_bluetooth.c
index 621a880e1..51e8a89bd 100644
--- a/src/transport/plugin_transport_bluetooth.c
+++ b/src/transport/plugin_transport_bluetooth.c
@@ -1804,7 +1804,10 @@ bluetooth_plugin_update_session_timeout (void *cls,
1804 const struct GNUNET_PeerIdentity *peer, 1804 const struct GNUNET_PeerIdentity *peer,
1805 struct Session *session) 1805 struct Session *session)
1806{ 1806{
1807 1807 if (GNUNET_SCHEDULER_NO_TASK != session->timeout_task)
1808 GNUNET_SCHEDULER_cancel (session->timeout_task);
1809 session->timeout_task = GNUNET_SCHEDULER_add_delayed (
1810 GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT, &session_timeout, session);
1808} 1811}
1809 1812
1810 1813