Skip to content

Commit

Permalink
Merge pull request #398 from cgalibern/fix-om-mon-race
Browse files Browse the repository at this point in the history
fix-om-mon-race
  • Loading branch information
cgalibern authored Aug 21, 2023
2 parents 1c31491 + 5a4751f commit 485f1f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/monitor/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func (m *T) watch(statusGetter Getter, evReader event.ReadCloser, out io.Writer)
for d := range dataC {
m.doOneShot(*d, true, out)
}
}(data)
}(data.DeepCopy())

defer close(dataC)

Expand Down

0 comments on commit 485f1f6

Please sign in to comment.