Issue found on iOS-Kore-SDK tag version 0.16
When the disconnect method of BotClient is called continuously the RTMTimer is generating a crash. The RTMPersistenceConnection is deallocating the timerSource and after that in the deinit, the timer.setEventHandler {} is accessing a bad reference because the timer is nil. The log error message from Xcode console is: Cannot form weak reference to instance (0x1c524bca0) of class KoreBotSDK.RTMTimer. It is possible that this object was over-released, or is in the process of deallocation.
Please see the following evidence:

BotClient.swift

RTMPersistenceConnection.swift

RTMPersistenceConnection.swift - RTMTimer


RTMPersistenceConnection.swift - RTMTimer


This is our crash report from Crashlytics:

Issue found on iOS-Kore-SDK tag version
0.16When the
disconnectmethod of BotClient is called continuously the RTMTimer is generating a crash. The RTMPersistenceConnection is deallocating thetimerSourceand after that in thedeinit, thetimer.setEventHandler {}is accessing a bad reference because the timer is nil. The log error message from Xcode console is:Cannot form weak reference to instance (0x1c524bca0) of class KoreBotSDK.RTMTimer. It is possible that this object was over-released, or is in the process of deallocation.Please see the following evidence:
BotClient.swift

RTMPersistenceConnection.swift

RTMPersistenceConnection.swift - RTMTimer


RTMPersistenceConnection.swift - RTMTimer


This is our crash report from Crashlytics: