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 9f56087171..86fd3cb4c1 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,7 +38,6 @@ 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 @@ -192,9 +191,7 @@ object MoGoChatFacade: IMoGoChatFacade { val openId = (temp["localUserId"] as? Double ?: return@launch).toInt().toString() Logger.d(ChatConsts.TAG, "handleMessage --- openId:$openId") //初始化房间 - withContext(ThreadUtils.getIoPool().asCoroutineDispatcher()) { - GMEApi.init(context(), openId = openId, cb = gmeCallback) - } + GMEApi.init(context(), openId = openId, cb = gmeCallback) } else -> Logger.d(ChatConsts.TAG, "handleMessage --- $t")