Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f4b55ab8 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Floss: Notify OnScannerRegistered when RegisterScanner fails" into main

parents 46fbb765 010f679a
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -4095,12 +4095,6 @@ impl BtifGattScannerCallbacks for BluetoothGatt {
            status
        );

        if status != GattStatus::Success {
            log::error!("Error registering scanner UUID {}", uuid);
            self.scanners.lock().unwrap().remove(&uuid);
            return;
        }

        let mut scanners_lock = self.scanners.lock().unwrap();
        let scanner_info = scanners_lock.get_mut(&uuid);

@@ -4117,6 +4111,11 @@ impl BtifGattScannerCallbacks for BluetoothGatt {
                uuid
            );
        }

        if status != GattStatus::Success {
            log::error!("Error registering scanner UUID {}", uuid);
            scanners_lock.remove(&uuid);
        }
    }

    fn on_scan_result(