mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-05 23:50:08 +08:00
#1509 try to fix bot is closed manually
This commit is contained in:
parent
b34dec29ca
commit
93fad9ee1c
@ -132,7 +132,8 @@ internal open class QQAndroidBot constructor(
|
||||
cause is NetworkException && cause.recoverable -> {
|
||||
eventDispatcher.broadcastAsync(BotOfflineEvent.Dropped(bot, cause))
|
||||
}
|
||||
cause is BotClosedByEvent -> {
|
||||
cause == null ->{
|
||||
eventDispatcher.broadcastAsync(BotOfflineEvent.Dropped(bot, null))
|
||||
}
|
||||
else -> {
|
||||
// any other unexpected exceptions considered as an error
|
||||
|
Loading…
Reference in New Issue
Block a user