This commit is contained in:
jingtao01
2019-06-06 19:01:43 +08:00
parent c359375104
commit 02c05cbbb7

View File

@@ -188,9 +188,7 @@ func (stm *stream) resolve() {
for { for {
select { select {
case packet := <- stm.packets: case packet := <- stm.packets:
if packet.length == 0 { if packet.length != 0 {
break
}
if packet.isClientFlow { if packet.isClientFlow {
stm.resolveClientPacket(packet.payload, packet.seq) stm.resolveClientPacket(packet.payload, packet.seq)
} else { } else {
@@ -198,6 +196,7 @@ func (stm *stream) resolve() {
} }
} }
} }
}
} }
func (stm *stream) findStmtPacket (srv chan *packet, seq int) *packet { func (stm *stream) findStmtPacket (srv chan *packet, seq int) *packet {