Skip to content

Commit

Permalink
[Java] Only respond to response for request correlationId.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjpt777 committed Nov 25, 2018
1 parent a9f6f62 commit b727a69
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1040,12 +1040,15 @@ else if (context.errorHandler() != null)
}
}

if (ControlResponseCode.OK != code)
if (poller.correlationId() == correlationId)
{
throw new ArchiveException("unexpected response code: " + code);
}
if (ControlResponseCode.OK != code)
{
throw new ArchiveException("unexpected response code: " + code);
}

return poller.relevantId();
return poller.relevantId();
}
}
}

Expand Down

0 comments on commit b727a69

Please sign in to comment.