mirror of
https://github.com/lkmio/lkm.git
synced 2025-09-27 11:32:26 +08:00
修复rtmp推拉流内存泄漏问题
This commit is contained in:
@@ -56,10 +56,7 @@ func (s *server) OnPacket(conn net.Conn, data []byte) []byte {
|
||||
|
||||
if err != nil {
|
||||
log.Sugar.Errorf("处理rtmp包失败 err:%s conn:%s", err.Error(), conn.RemoteAddr().String())
|
||||
|
||||
_ = conn.Close()
|
||||
t.Data.(*Session).Close()
|
||||
t.Data = nil
|
||||
}
|
||||
|
||||
if session.isPublisher {
|
||||
|
Reference in New Issue
Block a user