mirror of
https://github.com/lkmio/lkm.git
synced 2025-09-27 11:32:26 +08:00
修复1078推流结束时崩溃问题
This commit is contained in:
@@ -144,15 +144,7 @@ func (s *Session) Input(data []byte) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *Session) Close() {
|
func (s *Session) Close() {
|
||||||
log.Sugar.Infof("1078推流结束 phone number:%s %s", s.phone, s.PublishSource.String())
|
log.Sugar.Infof("1078推流结束 %s", s.String())
|
||||||
|
|
||||||
if s.audioBuffer != nil {
|
|
||||||
s.audioBuffer.Clear()
|
|
||||||
}
|
|
||||||
|
|
||||||
if s.videoBuffer != nil {
|
|
||||||
s.videoBuffer.Clear()
|
|
||||||
}
|
|
||||||
|
|
||||||
if s.Conn != nil {
|
if s.Conn != nil {
|
||||||
s.Conn.Close()
|
s.Conn.Close()
|
||||||
|
Reference in New Issue
Block a user