1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 19:17:38 +08:00
This commit is contained in:
Mrs4s 2021-01-05 00:20:31 +08:00
parent 79f7c48b93
commit 507d218433

View File

@ -267,7 +267,8 @@ func (c *QQClient) highwayUploadFileMultiThreadingByBDH(path string, cmdId int32
}
block := blocks[nextId]
if block.Id == len(blocks)-1 {
for uploadedCount() != len(blocks)-1 && lastErr == nil {
t := time.Now()
for uploadedCount() != len(blocks)-1 && lastErr == nil && time.Now().Sub(t).Seconds() < 5 {
time.Sleep(time.Millisecond * 10)
}
if lastErr != nil {