Explicitly access property coroutineContext

This commit is contained in:
Him188 2019-11-29 23:55:41 +08:00
parent 015c394324
commit 9bc982c089

View File

@ -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()
}