Browse Source

Merge pull request #2 from gwuhaolin/master

更新
pull/142/head
BerryCol 5 years ago committed by GitHub
parent
commit
23184a9dde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      protocol/rtmp/stream.go

2
protocol/rtmp/stream.go

@ -402,8 +402,8 @@ func (s *Stream) closeInter() { @@ -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())
}

Loading…
Cancel
Save