mirror of
https://github.com/bluenviron/mediamtx.git
synced 2026-01-10 04:11:59 -08:00
fix race condition wen record agent is closing (#2369)
This commit is contained in:
parent
ac10102329
commit
7ca2571dc3
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue