Fix adding pump state to CommandResult when there are violations.

This commit is contained in:
Johannes Mockenhaupt 2017-07-20 13:07:56 +02:00
parent d85425e68b
commit a2fad3293d
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -168,7 +168,7 @@ public class RuffyScripter {
List<String> violations = cmd.validateArguments();
if (!violations.isEmpty()) {
return new CommandResult().message(Joiner.on("\n").join(violations));
return new CommandResult().message(Joiner.on("\n").join(violations)).state(readPumpState());
}
synchronized (RuffyScripter.class) {