File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed
app/src/main/java/io/agora/flat Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,9 @@ class PostLoginInitializers @Inject constructor(
1212 @ApplicationContext val context : Context ,
1313 private val initializers : Set <@JvmSuppressWildcards PostLoginInitializer >,
1414) {
15- private var inited = false
16-
1715 fun init () {
18- if (inited) return
1916 initializers.forEach {
2017 it.init (context)
2118 }
22- inited = true
2319 }
2420}
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ class AgoraRtm @Inject constructor(
5353 private var rtmListeners = mutableListOf<RtmListener >()
5454
5555 override fun init (context : Context ) {
56+ RtmClient .release()
5657 try {
5758 val config = RtmConfig .Builder (appEnv.agoraAppId, appKVCenter.getUserInfo()?.uuid)
5859 .eventListener(this )
You can’t perform that action at this time.
0 commit comments