mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-05 23:50:08 +08:00
Improve ForceOfflineException.message
: use canonical message tips
This commit is contained in:
parent
8647d38b34
commit
ec5ad17ac4
@ -32,6 +32,6 @@ internal object MessageSvcPushForceOffline :
|
||||
override suspend fun QQAndroidBot.handle(packet: RequestPushForceOffline) {
|
||||
components[AccountSecretsManager].invalidate() // otherwise you receive `MessageSvc.PushForceOffline` again just after logging in.
|
||||
components[BotInitProcessor].setLoginHalted() // so that BotInitProcessor will be run on successful reconnection.
|
||||
network.close(ForceOfflineException(packet.title, "Closed by MessageSvc.PushForceOffline: $packet"))
|
||||
network.close(ForceOfflineException(packet.title, packet.tips))
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user