mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-10 02:20:14 +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()) {
|
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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user