mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-15 12:13:24 +00:00
only remove message when it successfully parses and handles
This commit is contained in:
parent
ec57c72e08
commit
874b1cd53c
@ -1088,7 +1088,8 @@ namespace llarp
|
|||||||
llarp::LogDebug("got message ", msgid, " from ", remoteAddr);
|
llarp::LogDebug("got message ", msgid, " from ", remoteAddr);
|
||||||
result = parent->HandleMessage(this, buf);
|
result = parent->HandleMessage(this, buf);
|
||||||
// get rid of message buffer
|
// get rid of message buffer
|
||||||
m_RecvMsgs.erase(itr);
|
if(result)
|
||||||
|
m_RecvMsgs.erase(itr->first);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user