mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Accepting empty deviceName, when requesting a BluetoothDevice.
This commit is contained in:
parent
2b4829b89a
commit
4ed461c6e5
6 changed files with 10 additions and 22 deletions
|
@ -106,8 +106,8 @@ fn matches_filter(device: &BluetoothDevice, filter: &BluetoothScanfilter) -> boo
|
|||
}
|
||||
|
||||
// Step 1.
|
||||
if !filter.get_name().is_empty() {
|
||||
if device.get_name().ok() != Some(filter.get_name().to_string()) {
|
||||
if let Some(name) = filter.get_name() {
|
||||
if device.get_name().ok() != Some(name.to_string()) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue