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