Done() the waitgroup for objects that don't get added to the transfer queue

This commit is contained in:
rubyist 2015-07-16 18:29:32 -07:00
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()
}
}
}