diff --git a/Bluejay/Bluejay/Bluejay.swift b/Bluejay/Bluejay/Bluejay.swift index b1c9d89..78dd5b4 100644 --- a/Bluejay/Bluejay/Bluejay.swift +++ b/Bluejay/Bluejay/Bluejay.swift @@ -361,11 +361,13 @@ public class Bluejay: NSObject { //swiftlint:disable:this type_body_length debugLog("CBCentralManager initialized.") case .use(let manager, let peripheral): cbCentralManager = manager - + // restoring delegation with cental manger + cbCentralManager.delegate = self if let peripheral = peripheral { connectedPeripheral = Peripheral(delegate: self, cbPeripheral: peripheral) peripheral.delegate = connectedPeripheral } + queue.start() } debugLog("Bluejay with UUID: \(uuid.uuidString) started.")