Done() the waitgroup for objects that don't get added to the transfer queue
This commit is contained in:
parent
565f8f4fd2
commit
f16c765f42
@ -184,7 +184,11 @@ func (q *TransferQueue) batchApiRoutine() {
|
||||
if transfer, ok := q.transferables[o.Oid]; ok {
|
||||
transfer.SetObject(o)
|
||||
q.transferc <- transfer
|
||||
} else {
|
||||
q.wait.Done()
|
||||
}
|
||||
} else {
|
||||
q.wait.Done()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user