device: Fix crash when removing device
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 10 Feb 2022 22:11:42 +0000 (14:11 -0800)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:53 +0000 (14:55 +0530)
commitb6d8cfac473201f4c33646300e3b876851910fd6
treeb64106296d6a1bb71d0422b129053b2a52a071a1
parentce2c199e7a8037a241a5f588599007c050e45ada
device: Fix crash when removing device

Calling btd_adapter_remove_device from device_remove_connection can
cause a crash, so instead of removing it immediatelly this set a the
temporary timeout to 0.

Fixes: https://github.com/bluez/bluez/issues/290
Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/device.c