1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-05 03:23:50 +08:00

fix quality test.

This commit is contained in:
Mrs4s 2020-11-17 19:12:31 +08:00
parent 3abc734886
commit c7a3a6db4d

View File

@ -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()