Remove setting RSSI to nil of a remote service when it updates its configuration

This commit is contained in:
Zsombor Szabo 2020-02-12 09:59:52 +02:00
parent c017a81bc8
commit 0052e9072a
1 changed files with 0 additions and 4 deletions

View File

@ -1289,10 +1289,6 @@ extension BluetoothController: CBPeripheralManagerDelegate {
if let services = self.servicesOfPeripherals[peripheral] {
self.service?.servicesInRange.subtract(services)
}
self.servicesOfPeripherals[peripheral]?.forEach {
$0.rssi = nil
}
self.rssiOfPeripherals[peripheral] = nil
self.servicesOfPeripherals.removeValue(forKey: peripheral)
// Drastic, but works
self.discoveredPeripherals.remove(peripheral)