mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-09 18:00:33 +08:00
Shuffle server list when RequireReconnect
This commit is contained in:
parent
17de501f04
commit
b3e77119fb
@ -481,7 +481,7 @@ internal class QQAndroidBotNetworkHandler(coroutineContext: CoroutineContext, bo
|
||||
|
||||
if (resp.serverList.isNotEmpty()) {
|
||||
bot.serverList.clear()
|
||||
resp.serverList.forEach {
|
||||
resp.serverList.shuffled().forEach {
|
||||
bot.serverList.add(it.host to it.port)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user