fix(im): avoid duplicate connectWithToken when init and login are both called
这个提交包含在:
父节点
ba3f286341
当前提交
dc1ad2be69
@ -661,6 +661,10 @@ object ImSDK {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun connectWithToken(token: String) {
|
private fun connectWithToken(token: String) {
|
||||||
|
if (currentToken == token && client != null) {
|
||||||
|
Log.d(TAG, "connectWithToken skipped: already connecting/connected with same token")
|
||||||
|
return
|
||||||
|
}
|
||||||
reconnectEnabled = false
|
reconnectEnabled = false
|
||||||
reconnectJob?.cancel()
|
reconnectJob?.cancel()
|
||||||
reconnectJob = null
|
reconnectJob = null
|
||||||
|
|||||||
正在加载...
在新工单中引用
屏蔽一个用户