增加调用发布者的Dispose方法

This commit is contained in:
langhuihui
2021-02-09 21:50:46 +08:00
parent ad8cbf59e0
commit 06be2e822d
4 changed files with 24 additions and 49 deletions

View File

@@ -55,6 +55,9 @@ func processRtmp(conn net.Conn) {
defer func() {
conn.Close()
if stream != nil {
if stream.Publisher != nil {
stream.Publisher.Dispose()
}
stream.Close()
}
for _, s := range streams {