Skip to content

Commit

Permalink
Fix an incorect behavior, when converting optional services.
Browse files Browse the repository at this point in the history
  • Loading branch information
zakorgy committed Jun 6, 2016
1 parent 1bc94c1 commit 0d79437
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions components/script/dom/bluetooth.rs
Expand Up @@ -125,10 +125,9 @@ fn convert_request_device_options(options: &RequestDeviceOptions,
if let Some(ref opt_services) = options.optionalServices {
for opt_service in opt_services {
let uuid = try!(BluetoothUUID::GetService(global, opt_service.clone())).to_string();
if uuid_is_blacklisted(uuid.as_ref(), Blacklist::All) {
return Err(Security)
if !uuid_is_blacklisted(uuid.as_ref(), Blacklist::All) {
optional_services.push(uuid);
}
optional_services.push(uuid);
}
}

Expand Down

0 comments on commit 0d79437

Please sign in to comment.