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

Commit

Permalink
Fix #1459, Fix stop cmdlet error (#1460)
Browse files Browse the repository at this point in the history
  • Loading branch information
littlezhou authored Dec 1, 2017
1 parent 6c01665 commit 2cc104e
Showing 1 changed file with 6 additions and 2 deletions.
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

0 comments on commit 2cc104e

Please sign in to comment.