Halt bot when failed with LoginFailedException

This commit is contained in:
Him188 2020-04-23 21:47:48 +08:00
parent 96ed65442d
commit d584b765ab

View File

@ -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)
}