Fix ghost exec/ffmpeg process

This commit is contained in:
Alex X
2024-06-05 19:59:22 +03:00
parent 756be9801e
commit 9bb36ebb6c
4 changed files with 15 additions and 3 deletions
+3
View File
@@ -304,5 +304,8 @@ func (c *Conn) Close() error {
if c.mode == core.ModeActiveProducer {
_ = c.Teardown()
}
if c.OnClose != nil {
_ = c.OnClose()
}
return c.conn.Close()
}