Commit c1795064 authored by Linshizhi's avatar Linshizhi

bug fix

parent 794ba613
......@@ -81,6 +81,7 @@ MMProto* createMMProto(void) {
p->buffer = createList();
listSetDestructor(p->buffer, bufferInfoDestructor);
return p;
}
......@@ -120,8 +121,8 @@ void mmpPush(MMProto *mm, uint8_t *packets, int size) {
info->size = size;
listPush(mm->buffer, info);
mm->eof = true;
mm->eof = packets == NULL && size == 0;
mm->size += size;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment