Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Fix #1459, Fix stop cmdlet error #1460

Merged
merged 1 commit into from
Dec 1, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,12 @@ private boolean handleClientMessage(Object message) {
return true;
} else if (message instanceof StopCmdlet) {
long cmdletId = ((StopCmdlet) message).getCmdletId();
dispatches.get(cmdletId).tell(message, getSelf());
getSender().tell("Succeed", getSelf());
if (dispatches.containsKey(cmdletId)) {
dispatches.get(cmdletId).tell(message, getSelf());
getSender().tell("Succeed", getSelf());
} else {
getSender().tell("NotFound", getSelf());
}
return true;
} else {
return false;
Expand Down