mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-31 11:50:09 +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 -> {
|
cause is NetworkException && cause.recoverable -> {
|
||||||
eventDispatcher.broadcastAsync(BotOfflineEvent.Dropped(bot, cause))
|
eventDispatcher.broadcastAsync(BotOfflineEvent.Dropped(bot, cause))
|
||||||
}
|
}
|
||||||
cause is BotClosedByEvent -> {
|
cause == null ->{
|
||||||
|
eventDispatcher.broadcastAsync(BotOfflineEvent.Dropped(bot, null))
|
||||||
}
|
}
|
||||||
else -> {
|
else -> {
|
||||||
// any other unexpected exceptions considered as an error
|
// any other unexpected exceptions considered as an error
|
||||||
|
Loading…
Reference in New Issue
Block a user