1
0
mirror of https://github.com/mamoe/mirai.git synced 2025-03-26 07:20:09 +08:00

Close network in-place in BotOfflineEventMonitorImpl.onEvent on BotOfflineEvent.Active

This commit is contained in:
Him188 2021-05-31 17:05:20 +08:00
parent 043006413c
commit 4fd1b25838

View File

@ -59,7 +59,7 @@ internal class BotOfflineEventMonitorImpl : BotOfflineEventMonitor {
launch {
network.awaitState(State.CLOSED)
}
bot.launch { network.close(BotClosedByEvent(event)) }
network.close(BotClosedByEvent(event))
}
when (event) {