Merge pull request #24 from 40t/fix_mysql_resolve

Fix mysql resolve
This commit is contained in:
Four 2019-06-06 19:05:00 +08:00 committed by GitHub
commit bf05608086
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -188,10 +188,12 @@ func (stm *stream) resolve() {
for { for {
select { select {
case packet := <- stm.packets: case packet := <- stm.packets:
if packet.isClientFlow { if packet.length != 0 {
stm.resolveClientPacket(packet.payload, packet.seq) if packet.isClientFlow {
} else { stm.resolveClientPacket(packet.payload, packet.seq)
stm.resolveServerPacket(packet.payload, packet.seq) } else {
stm.resolveServerPacket(packet.payload, packet.seq)
}
} }
} }
} }