Devices with random addresses will not have its temporary flag (as they
cannot be persisted in storage) reset even in case they are connected
which could cause and unintended disconnection.
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
if (dev->le_state.connected && dev->bredr_state.connected)
return;
+ /* Remove temporary timer while connected */
+ if (dev->temporary_timer) {
+ g_source_remove(dev->temporary_timer);
+ dev->temporary_timer = 0;
+ }
+
g_dbus_emit_property_changed(dbus_conn, dev->path, DEVICE_INTERFACE,
"Connected");
#else