[Minor] State.canSetToStopped() allowed for WARNING

This commit is contained in:
Robert von Burg 2018-07-05 11:07:59 +02:00
parent 2d7ade06a8
commit 3ccfc3e942
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ public enum State {
* @return true if {@link #ERROR} or {@link #STOPPED}
*/
public boolean canSetToStopped() {
return this == ERROR || this == State.STOPPED;
return this == ERROR || this == State.STOPPED || this == State.WARNING;
}
/**