This commit is contained in:
2025-10-19 20:30:11 +02:00
parent eeedc629d7
commit b4f11851d7

View File

@@ -37,6 +37,13 @@ final class TimeSyncManager: NSObject, ObservableObject {
override init() {
super.init()
// Force the central manager to be created immediately so CoreBluetooth
// can begin delivering state updates without waiting for a manual action.
_ = central
if central.state == .poweredOn {
startScanning()
}
}
deinit {
@@ -250,4 +257,3 @@ extension TimeSyncManager: CBPeripheralDelegate {
central.cancelPeripheralConnection(peripheral)
}
}