mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-23 22:00:10 +08:00
Halt bot when failed with LoginFailedException
This commit is contained in:
parent
96ed65442d
commit
d584b765ab
@ -139,6 +139,9 @@ internal open class QQAndroidClient(
|
||||
throw it
|
||||
}
|
||||
}.getOrElse {
|
||||
if (it is LoginFailedException) {
|
||||
throw it
|
||||
}
|
||||
bot.client.serverList.addAll(DefaultServerList)
|
||||
throw NoServerAvailableException(it)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user