Skip to content

Commit e481f6b

Browse files
Ensure simple logger shuts down properly (#4473)
1 parent 79d125c commit e481f6b

File tree

1 file changed

+8
-3
lines changed
  • v2/cmd/asoctl/pkg/importreporter

1 file changed

+8
-3
lines changed

v2/cmd/asoctl/pkg/importreporter/log.go

+8-3
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,14 @@ func newLogProgress(
4747
total += int64(delta.pending)
4848

4949
// If we're done, finish up
50-
if parent == nil && total > 0 && completed >= total {
51-
// We're the root importreporter log, so we also need to handle the done channel
52-
close(done)
50+
if total > 0 && completed >= total {
51+
close(result.updates)
52+
53+
if parent == nil {
54+
// We're the root importreporter log, so we also need to handle the done channel
55+
close(done)
56+
}
57+
5358
break
5459
}
5560

0 commit comments

Comments
 (0)