mirror of
https://github.com/Monibuca/engine.git
synced 2025-12-24 13:18:07 +08:00
修复publisher为空的问题
This commit is contained in:
@@ -357,7 +357,7 @@ func (r *Stream) action(action StreamAction) (ok bool) {
|
||||
stateEvent = SEclose{event}
|
||||
r.Subscribers.Broadcast(stateEvent)
|
||||
r.Tracks.Range(func(_ string, t common.Track) {
|
||||
if t.GetPublisher().GetStream() == r {
|
||||
if t.GetPublisher() == nil || t.GetPublisher().GetStream() == r {
|
||||
t.Dispose()
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user