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()
}
+1
View File
@@ -24,6 +24,7 @@ type Conn struct {
Backchannel bool
Media string
OnClose func() error
PacketSize uint16
SessionName string
Timeout int