[PATCH 03/25] android/gatt: Fix for setting conn timeout

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 android/gatt.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/android/gatt.c b/android/gatt.c
index 720a205..9c2260c 100644
--- a/android/gatt.c
+++ b/android/gatt.c
@@ -1344,6 +1344,9 @@ static void discover_primary_cb(uint8_t status, GSList *services,
 
 	free(cb_data);
 
+	if (conn->timeout_id > 0)
+		g_source_remove(conn->timeout_id);
+
 	conn->timeout_id = g_timeout_add_seconds(GATT_CONN_TIMEOUT,
 						connection_timeout, conn);
 }
-- 
1.8.4

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux