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:
parent
043006413c
commit
4fd1b25838
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user