mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 19:17:38 +08:00
timeout.
This commit is contained in:
parent
79f7c48b93
commit
507d218433
@ -267,7 +267,8 @@ func (c *QQClient) highwayUploadFileMultiThreadingByBDH(path string, cmdId int32
|
|||||||
}
|
}
|
||||||
block := blocks[nextId]
|
block := blocks[nextId]
|
||||||
if block.Id == len(blocks)-1 {
|
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)
|
time.Sleep(time.Millisecond * 10)
|
||||||
}
|
}
|
||||||
if lastErr != nil {
|
if lastErr != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user