Merge pull request #339 from joestarzxh/master

[fix] 修复http sub没有正确释放的问题
pull/341/head
yoko 1 year ago committed by GitHub
commit 8fa60e4d0d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -78,6 +78,7 @@ func (h *HttpServerHandler) ServeSubSession(writer http.ResponseWriter, req *htt
err = session.RunLoop()
Log.Debugf("[%s] httpflv sub session loop done. err=%v", session.UniqueKey(), err)
h.observer.OnDelHttpflvSubSession(session)
_ = session.Dispose()
return
}
@ -92,6 +93,7 @@ func (h *HttpServerHandler) ServeSubSession(writer http.ResponseWriter, req *htt
err = session.RunLoop()
Log.Debugf("[%s] httpts sub session loop done. err=%v", session.UniqueKey(), err)
h.observer.OnDelHttptsSubSession(session)
_ = session.Dispose()
return
}
}

Loading…
Cancel
Save