honour context being done

This commit is contained in:
Jesse Duffield 2022-05-12 16:59:37 +10:00
parent cc2f8032c7
commit d940f2e7ab

View file

@ -317,6 +317,8 @@ outer:
if errorCount > 0 {
select {
case <-ctx.Done():
return
case err := <-errChan:
onError(err)
continue outer