Skip to content
Permalink
Browse files

Remove not allowed services when calling getPrimaryServices.

  • Loading branch information...
zakorgy committed Oct 7, 2016
1 parent baa024e commit 0eeb56b5492fb6a3cc422193e7b753bc55f3cff3
@@ -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)));
}

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

0 comments on commit 0eeb56b

Please sign in to comment.
You can’t perform that action at this time.