mirror of
https://github.com/Monibuca/plugin-rtmp.git
synced 2025-10-13 03:03:49 +08:00
增加调用发布者的Dispose方法
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user