SLIDER-622 fixed erroneous negation
Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/09ef9240 Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/09ef9240 Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/09ef9240 Branch: refs/heads/feature/SLIDER-622-windows Commit: 09ef9240d758a8d9edc9506b4a6d98935b648dcf Parents: 290a5e8 Author: Steve Loughran <[email protected]> Authored: Mon Nov 10 17:50:28 2014 +0000 Committer: Steve Loughran <[email protected]> Committed: Mon Nov 10 17:50:28 2014 +0000 ---------------------------------------------------------------------- .../src/main/java/org/apache/slider/common/tools/SliderUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/09ef9240/slider-core/src/main/java/org/apache/slider/common/tools/SliderUtils.java ---------------------------------------------------------------------- diff --git a/slider-core/src/main/java/org/apache/slider/common/tools/SliderUtils.java b/slider-core/src/main/java/org/apache/slider/common/tools/SliderUtils.java index fa3f0bd..f4cea00 100644 --- a/slider-core/src/main/java/org/apache/slider/common/tools/SliderUtils.java +++ b/slider-core/src/main/java/org/apache/slider/common/tools/SliderUtils.java @@ -1910,7 +1910,7 @@ public final class SliderUtils { String errorText = null; process.start(); try { - if (process.waitForServiceToStop(timeoutMillis)) { + if (!process.waitForServiceToStop(timeoutMillis)) { throw new TimeoutException( "Process did not stop in " + timeoutMillis + "mS"); }
