Message ID | 20220621134818.11515-1-wangyouwan@uniontech.com |
---|---|
State | New |
Headers | show |
Series | device: Fix timeout=1 to remove the device immediately | expand |
diff --git a/src/device.c b/src/device.c index 7b451e458..d38ad74fc 100644 --- a/src/device.c +++ b/src/device.c @@ -3159,7 +3159,7 @@ void device_remove_connection(struct btd_device *device, uint8_t bdaddr_type) DEVICE_INTERFACE, "Connected"); if (remove_device) - set_temporary_timer(device, 0); + set_temporary_timer(device, 1); } guint device_add_disconnect_watch(struct btd_device *device,