fix previous commit

pull/4/head
Jeff Becker 6 years ago
parent d34937118d
commit 8a682a8b83
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -516,6 +516,7 @@ namespace iwp
{ {
// TODO: is this right? // TODO: is this right?
auto &front = q.front(); auto &front = q.front();
// the items are already sorted anyways so this doesn't really do much
nextMsgID = std::max(nextMsgID, front->msgid); nextMsgID = std::max(nextMsgID, front->msgid);
if(!router->HandleRecvLinkMessage(parent, front->Buffer())) if(!router->HandleRecvLinkMessage(parent, front->Buffer()))
{ {
@ -1796,7 +1797,7 @@ namespace iwp
} }
++nextMsgID; ++nextMsgID;
} }
else if(recvqueue.Size() > 2) else
{ {
recvqueue.Put(new InboundMessage(id, msg)); recvqueue.Put(new InboundMessage(id, msg));
success = process_inbound_queue(); success = process_inbound_queue();

Loading…
Cancel
Save