[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: Icc800e9704f8c9cdb09338f2d1e5504d5c60f64d
Signed-off-by: Seungyoun Ju <sy39.ju@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
g_variant_unref(ret);
}
+ _bt_stop_visibility_timer();
+
mode = BLUETOOTH_DISCOVERABLE_MODE_CONNECTABLE;
/* Send event to application */