--- 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