Commit d584b765 authored by Him188's avatar Him188

Halt bot when failed with `LoginFailedException`

parent 96ed6544
......@@ -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)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment