Skip to content
Snippets Groups Projects
Commit 4dc3b58d authored by brinn's avatar brinn
Browse files

Add a sanity check on client-side incoming messages.

SVN: 24019
parent 28a9a5b0
No related branches found
No related tags found
No related merge requests found
......@@ -63,6 +63,13 @@ public class ClientMessenger implements IClientMessenger
{
public void send(ServiceMessage message)
{
if (serviceConversationId.equals(message.getConversationId()))
{
throw new IllegalArgumentException(
"Attempt to put in a message for conversation "
+ message.getConversationId()
+ " into queue for conversation " + serviceConversationId);
}
if (message.getMessageIdx() <= messageIdxLastSeen)
{
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment