mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
fix: remove v-battery when device disconnects
This commit is contained in:
parent
a0ac3ac8dd
commit
e2ac16ccbd
1 changed files with 2 additions and 0 deletions
|
|
@ -738,6 +738,8 @@ static int device_remove(struct spa_bt_monitor *monitor, struct spa_bt_device *d
|
|||
if (!device->added)
|
||||
return 0;
|
||||
|
||||
battery_remove(device);
|
||||
|
||||
device->added = false;
|
||||
spa_device_emit_object_info(&monitor->hooks, device->id, NULL);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue