From f34019bf9ce981c50886fddd97d6e76666ef0b79 Mon Sep 17 00:00:00 2001 From: renwj Date: Thu, 25 May 2023 15:41:37 +0800 Subject: [PATCH] =?UTF-8?q?[3.2.0][GME]=20=E4=BF=AE=E6=AD=A3=E5=9B=A0GME?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E5=AF=BC=E8=87=B4=E7=9A=84=E5=8D=A1?= =?UTF-8?q?=E9=A1=BF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mogo/eagle/core/function/chat/facade/MoGoChatFacade.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/function-impl/mogo-core-function-chat/src/main/java/com/mogo/eagle/core/function/chat/facade/MoGoChatFacade.kt b/core/function-impl/mogo-core-function-chat/src/main/java/com/mogo/eagle/core/function/chat/facade/MoGoChatFacade.kt index 86fd3cb4c1..9f56087171 100644 --- a/core/function-impl/mogo-core-function-chat/src/main/java/com/mogo/eagle/core/function/chat/facade/MoGoChatFacade.kt +++ b/core/function-impl/mogo-core-function-chat/src/main/java/com/mogo/eagle/core/function/chat/facade/MoGoChatFacade.kt @@ -38,6 +38,7 @@ import com.mogo.eagle.core.function.chat.facade.socket.SocketConnectManager import com.mogo.eagle.core.function.chat.facade.voice.VoiceControlFacade import com.mogo.eagle.core.utilcode.kotlin.safeCancel import com.mogo.eagle.core.utilcode.mogo.logger.Logger +import com.mogo.eagle.core.utilcode.util.ThreadUtils import com.mogo.eagle.core.utilcode.util.Utils import kotlinx.coroutines.* import kotlinx.coroutines.android.asCoroutineDispatcher @@ -191,7 +192,9 @@ object MoGoChatFacade: IMoGoChatFacade { val openId = (temp["localUserId"] as? Double ?: return@launch).toInt().toString() Logger.d(ChatConsts.TAG, "handleMessage --- openId:$openId") //初始化房间 - GMEApi.init(context(), openId = openId, cb = gmeCallback) + withContext(ThreadUtils.getIoPool().asCoroutineDispatcher()) { + GMEApi.init(context(), openId = openId, cb = gmeCallback) + } } else -> Logger.d(ChatConsts.TAG, "handleMessage --- $t")