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

Loading…
Cancel
Save