Skip to content

Commit

Permalink
Fix wrong packet id for replies
Browse files Browse the repository at this point in the history
  • Loading branch information
veikokaap committed Apr 11, 2018
1 parent abc7c9f commit 2a4d095
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public void visit(SetEventRequestReply reply) {
public void visit(DisposeCommand command) {
PacketSource debugger = command.getSource();

int id = command.getCommandId();
int id = command.getPacket().getId();
proxyCommandStream.write(debugger, DisposeReply.create(id));
proxyCommandStream.markForClosingAfterAllPacketsWritten(debugger);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public void handleClearEventCommand(ClearEventRequestCommand command) {
proxyCommandStream.writeToVm(command);
}
else {
proxyCommandStream.write(command.getSource(), ClearEventRequestReply.create(proxyCommandStream.getVmSource().createNewOutputId()));
proxyCommandStream.write(command.getSource(), ClearEventRequestReply.create(command.getPacket().getId()));
}
}

Expand Down

0 comments on commit 2a4d095

Please sign in to comment.