Shuffle server list when RequireReconnect

This commit is contained in:
Him188 2021-01-29 09:05:47 +08:00
parent 17de501f04
commit b3e77119fb

View File

@ -481,7 +481,7 @@ internal class QQAndroidBotNetworkHandler(coroutineContext: CoroutineContext, bo
if (resp.serverList.isNotEmpty()) { if (resp.serverList.isNotEmpty()) {
bot.serverList.clear() bot.serverList.clear()
resp.serverList.forEach { resp.serverList.shuffled().forEach {
bot.serverList.add(it.host to it.port) bot.serverList.add(it.host to it.port)
} }
} }