Simplify shuffled

This commit is contained in:
Him188 2020-01-07 13:42:04 +08:00
parent d6e4c0ee70
commit 2f59504e04

View File

@ -59,7 +59,7 @@ internal class TIMPCBotNetworkHandler internal constructor(coroutineContext: Cor
override suspend fun login() {
TIMProtocol.SERVER_IP.sortedBy { Random.nextInt() }.forEach { ip ->
TIMProtocol.SERVER_IP.shuffled().forEach { ip ->
bot.logger.info("Connecting server $ip")
try {
withTimeout(3000) {