From 7b7bc6efb649341962856ffe43d55dc84b329df6 Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Sun, 12 Nov 2017 17:07:59 +0100 Subject: [PATCH] RuffyScripter: increase overall command timeout to 4m. --- .../src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ruffyscripter/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java b/ruffyscripter/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java index ce93e5e4f8..70cbe999f2 100644 --- a/ruffyscripter/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java +++ b/ruffyscripter/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java @@ -232,7 +232,7 @@ public class RuffyScripter implements RuffyCommands { List violations = cmd.validateArguments(); if (!violations.isEmpty()) { log.error("Command argument violations: " + Joiner.on(", ").join(violations)); - return new CommandResult().state(readPumpStateInternal()); + return new CommandResult().success(false).state(readPumpStateInternal()); } // TODO simplify, hard to reason about exists @@ -358,7 +358,7 @@ public class RuffyScripter implements RuffyCommands { } private long calculateOverallCmdTimeout() { - return System.currentTimeMillis() + 3 * 60 * 1000; + return System.currentTimeMillis() + 4 * 60 * 1000; } /**