From bc30477dd28316ebb18369be15f7de735bfba3d2 Mon Sep 17 00:00:00 2001 From: Seungyoun Ju Date: Wed, 29 Nov 2017 18:02:07 +0900 Subject: [PATCH] Fix : Visibility timer is not cancelled when PSCAN off [Problem] Visibility timer is not stopped when connectable mode is turned off. [Cause & Measure] There is no logic to cancel timer. So this patch adds the cancel logic. [Checking Method] Turn on limited discoverable mode -> Turn off connectable mode -> Check discoverable timeout event Change-Id: Ic83084bf23876d3f44ecf0eec1661bfd5691e6cb --- bt-service/bt-service-event-receiver.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bt-service/bt-service-event-receiver.c b/bt-service/bt-service-event-receiver.c index 7a434cb..a980dad 100644 --- a/bt-service/bt-service-event-receiver.c +++ b/bt-service/bt-service-event-receiver.c @@ -730,6 +730,8 @@ static void __bt_adapter_property_changed_event(GVariant *msg, const char *path) g_variant_unref(ret); } + _bt_stop_visibility_timer(); + mode = BLUETOOTH_DISCOVERABLE_MODE_CONNECTABLE; /* Send event to application */ -- 2.7.4