The error value in didDisconnectWithError is nil sometimes; specially after disconnecting. But the protocol is defined as NSError! in Swift, implying that always a non-nil will be sent.
I think the SDK should be updated:
- To always send a non-nil value as NSError! protocol implies.
- Or, to update the protocol as NSError?
.