You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public var rx_state: Observable<BluetoothState> {
return .deferred { [unowned self] in
return self.centralManager.rx_didUpdateState.startWith(self.centralManager.state)
}
}
or
public var rx_state: Observable<BluetoothState> {
return .deferred { [central = self.centralManager] in
return central.rx_didUpdateState.startWith(central.state)
}
}
The text was updated successfully, but these errors were encountered:
Hi, guys. There are retain cycle issues in
BluetoothManager
. For example:Steps:
manager = nil
but deinit never called(action) -> Event next(poweredOn)
print twice which is not okProposed solution
https://github.com/Polidea/RxBluetoothKit/blob/master/Source/BluetoothManager.swift#L211
or
The text was updated successfully, but these errors were encountered: