summaryrefslogtreecommitdiff
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)
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,
const struct GNUNET_PeerIdentity *peer,
struct Session *session)
{
-
+ if (GNUNET_SCHEDULER_NO_TASK != session->timeout_task)
+ GNUNET_SCHEDULER_cancel (session->timeout_task);
+ session->timeout_task = GNUNET_SCHEDULER_add_delayed (
+ GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT, &session_timeout, session);
}