Skip to content

Commit

Permalink
gwuhaolin#112 issue improved, stopping writing to flvs after streamin…
Browse files Browse the repository at this point in the history
…g stopped
  • Loading branch information
sSimuSs committed Dec 7, 2020
1 parent 4d921fa commit fa892e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocol/rtmp/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,8 @@ func (s *Stream) closeInter() {
s.ws.Range(func(key, val interface{}) bool {
v := val.(*PackWriterCloser)
if v.w != nil {
v.w.Close(fmt.Errorf("closed"))
if v.w.Info().IsInterval() {
v.w.Close(fmt.Errorf("closed"))
s.ws.Delete(key)
log.Debugf("[%v] player closed and remove\n", v.w.Info())
}
Expand Down

0 comments on commit fa892e2

Please sign in to comment.