diff options
Diffstat (limited to 'src/transport/plugin_transport_bluetooth.c')
-rw-r--r-- | src/transport/plugin_transport_bluetooth.c | 5 |
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 | ||