mirror of
https://github.com/lkmio/lkm.git
synced 2025-10-05 15:16:49 +08:00
完善sink释放
This commit is contained in:
@@ -65,6 +65,8 @@ func (s *serverImpl) OnDisConnected(conn net.Conn, err error) {
|
||||
log.Sugar.Debugf("rtmp断开连接 conn:%s", conn.RemoteAddr().String())
|
||||
|
||||
t := conn.(*transport.Conn)
|
||||
t.Data.(*sessionImpl).Close()
|
||||
t.Data = nil
|
||||
if t.Data != nil {
|
||||
t.Data.(*sessionImpl).Close()
|
||||
t.Data = nil
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user