Skip to content

Commit

Permalink
handle STOPPED state request case-insensitively
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Sep 14, 2023
1 parent 9317c9b commit 5333964
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ private void handleStopOrUpdate(HttpExchange exchange, long id) throws IOExcepti

switch (field.getKey()) {
case "state":
if ("STOPPED".equals(field.getValue().textValue())) {
if ("stopped".equalsIgnoreCase(field.getValue().textValue())) {
shouldStop = true;
break;
}
Expand Down

0 comments on commit 5333964

Please sign in to comment.