fix race condition wen record agent is closing (#2369)

This commit is contained in:
Alessandro Ros 2023-09-19 11:43:26 +02:00 committed by GitHub
parent ac10102329
commit 7ca2571dc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -708,7 +708,7 @@ func (r *Agent) Log(level logger.Level, format string, args ...interface{}) {
}
func (r *Agent) run() {
close(r.done)
defer close(r.done)
r.writer.Start()