修复bug

pull/203/head
mask-pp 2020-08-03 19:39:20 +08:00
parent 785f293376
commit b37df00d5f
1 changed files with 1 additions and 5 deletions

View File

@ -249,11 +249,7 @@ func (session *Session) Start() {
Buffer: rtpBuf, Buffer: rtpBuf,
} }
default: default:
logger.Printf("unknow rtp pack type, %v", pack.Type) logger.Printf("unknow rtp pack type, %v", channel)
continue
}
if pack == nil {
logger.Printf("session tcp got nil rtp pack")
continue continue
} }
session.InBytes += rtpLen + 4 session.InBytes += rtpLen + 4