修复bug

This commit is contained in:
xiongziliang 2018-09-22 21:37:11 +08:00
parent 8779ed42e5
commit 10ef758211

View File

@ -104,10 +104,10 @@ begin_decode:
if(remain - playload_slice_len > 0){ if(remain - playload_slice_len > 0){
string nextPacket((char *)ptr + playload_slice_len,remain - playload_slice_len); string nextPacket((char *)ptr + playload_slice_len,remain - playload_slice_len);
_got_header = false; _got_header = false;
_remain_data.clear(); _remain_data = nextPacket;
data = ptr = (uint8_t *)nextPacket.data(); data = ptr = (uint8_t *)_remain_data.data();
len = nextPacket.size(); len = _remain_data.size();
goto begin_decode; goto begin_decode;
} else{ } else{
_got_header = false; _got_header = false;