Skip to content

Commit

Permalink
Make ServiceControllerImpl.internalSetMode() change the mode only aft…
Browse files Browse the repository at this point in the history
…er all validations have been performed.
  • Loading branch information
fl4via committed Feb 18, 2011
1 parent 49c87e0 commit 88bdada
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -577,7 +577,6 @@ private Runnable internalSetMode(final ServiceController.Mode newMode) {
assert holdsLock(this);
Runnable specialTask = null;
final ServiceController.Mode oldMode = mode;
mode = newMode;
switch (oldMode) {
case REMOVE: {
switch (newMode) {
Expand Down Expand Up @@ -698,6 +697,7 @@ private Runnable internalSetMode(final ServiceController.Mode newMode) {
break;
}
}
mode = newMode;
return specialTask;
}

Expand Down

0 comments on commit 88bdada

Please sign in to comment.