mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-08 17:20:11 +08:00
Explicitly access property coroutineContext
This commit is contained in:
parent
015c394324
commit
9bc982c089
@ -130,7 +130,7 @@ class Bot(val account: BotAccount, val logger: MiraiLogger, context: CoroutineCo
|
|||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
logger.error("Cannot close network handler", e)
|
logger.error("Cannot close network handler", e)
|
||||||
}
|
}
|
||||||
network = TIMBotNetworkHandler(coroutineContext + configuration, this@Bot)
|
network = TIMBotNetworkHandler(this@Bot.coroutineContext + configuration, this@Bot)
|
||||||
|
|
||||||
return network.login()
|
return network.login()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user