Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Bluejay/Bluejay/Bluejay.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down