mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 19:17:38 +08:00
fix quality test.
This commit is contained in:
parent
3abc734886
commit
c7a3a6db4d
@ -209,13 +209,13 @@ func NewClientMd5(uin int64, passwordMd5 [16]byte) *QQClient {
|
||||
wg.Add(len(cli.servers))
|
||||
for i := range cli.servers {
|
||||
go func(index int, w sync.WaitGroup) {
|
||||
defer wg.Done()
|
||||
p, err := qualityTest(cli.servers[index])
|
||||
if err != nil {
|
||||
pings[index] = 9999
|
||||
return
|
||||
}
|
||||
pings[index] = p
|
||||
wg.Done()
|
||||
}(i, wg)
|
||||
}
|
||||
wg.Wait()
|
||||
|
Loading…
x
Reference in New Issue
Block a user