From 9bc982c089857fc675cda3691a01794192fc5271 Mon Sep 17 00:00:00 2001 From: Him188 Date: Fri, 29 Nov 2019 23:55:41 +0800 Subject: [PATCH] Explicitly access property coroutineContext --- mirai-core/src/commonMain/kotlin/net.mamoe.mirai/Bot.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/Bot.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/Bot.kt index 619cd31cb..cb61aefad 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/Bot.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/Bot.kt @@ -130,7 +130,7 @@ class Bot(val account: BotAccount, val logger: MiraiLogger, context: CoroutineCo } catch (e: Exception) { logger.error("Cannot close network handler", e) } - network = TIMBotNetworkHandler(coroutineContext + configuration, this@Bot) + network = TIMBotNetworkHandler(this@Bot.coroutineContext + configuration, this@Bot) return network.login() }