mirror of
https://github.com/Monibuca/plugin-rtmp.git
synced 2025-09-26 19:51:38 +08:00
releaseStream增加判空
This commit is contained in:
@@ -183,7 +183,9 @@ func processRtmp(conn net.Conn) {
|
||||
amfobj := newAMFObjects()
|
||||
if s := FindStream(streamPath); s != nil {
|
||||
amfobj["level"] = "_result"
|
||||
s.Close()
|
||||
if s.Publisher != nil {
|
||||
s.Close()
|
||||
}
|
||||
} else {
|
||||
amfobj["level"] = "_error"
|
||||
}
|
||||
|
Reference in New Issue
Block a user