aboutsummaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/bluetooth/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/bluetooth/lib.rs b/components/bluetooth/lib.rs
index 69b22b60e11..55c883917f6 100644
--- a/components/bluetooth/lib.rs
+++ b/components/bluetooth/lib.rs
@@ -681,6 +681,9 @@ impl BluetoothManager {
}
}
}
+ services_vec.retain(|s| self.allowed_services
+ .get(&device_id)
+ .map_or(false, |uuids| uuids.contains(&s.uuid)));
if services_vec.is_empty() {
return drop(sender.send(Err(BluetoothError::NotFound)));
}