Skip to content

Commit

Permalink
Merge pull request rancher#41108 from rmweir/fix-leak
Browse files Browse the repository at this point in the history
Fix go routine leak
  • Loading branch information
rmweir authored Apr 26, 2023
2 parents 4c88796 + c600ad0 commit 21f894c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controllers/management/clusterstats/statsaggregator.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,8 @@ func resourceListChanged(oldList, newList v1.ResourceList) bool {
func callWithTimeout(do func()) {
done := make(chan struct{})
go func() {
defer close(done)
do()
done <- struct{}{}
}()

select {
Expand Down

0 comments on commit 21f894c

Please sign in to comment.