Decrease the waitgroup when batch errors

This commit is contained in:
rubyist 2015-08-17 15:21:08 -06:00
parent 2005013046
commit 84a34c2415

@ -176,6 +176,9 @@ func (q *TransferQueue) batchApiRoutine() {
go q.legacyFallback(batch)
return
}
q.wait.Add(-len(transfers))
q.errorc <- err
continue
}