Fix duplicated message
This commit is contained in:
parent
c8e6558cb6
commit
2e9cf595ee
@ -306,6 +306,7 @@ static void PushMessage()
|
||||
rsp.msg.wxmsg.content = (char *)wxmsg.content.c_str();
|
||||
gMsgQueue.pop();
|
||||
LOG_DEBUG("Recv msg: {}", wxmsg.content);
|
||||
pb_ostream_t stream = pb_ostream_from_buffer(buffer, G_BUF_SIZE);
|
||||
if (!pb_encode(&stream, Response_fields, &rsp)) {
|
||||
LOG_ERROR("Encoding failed: {}", PB_GET_ERROR(&stream));
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user