Fix error where we continue processing even when there are msg4 being queued

This commit is contained in:
Ai Lin Chia
2017-08-29 11:29:00 +02:00
parent 1569926807
commit 1f46f8100f

@ -245,7 +245,7 @@ bool Msg4::addMetaList ( const char *metaList, int32_t metaListSize, collnum_t c
// get in line if there's a line
{
ScopedLock sl(s_mtxQueuedMsg4s);
if (s_queuedMsg4s.empty()) {
if (!s_queuedMsg4s.empty()) {
s_queuedMsg4s.push_back(this);
log(LOG_DEBUG, "msg4: queueing msg4=%p", this);
@ -259,7 +259,7 @@ bool Msg4::addMetaList ( const char *metaList, int32_t metaListSize, collnum_t c
}
// no line. continue processing
if (processMetaList() ) {
if (processMetaList()) {
return true;
}