[Fix] State.canSetToExecution() includes STOPPED
This commit is contained in:
parent
b3c936c0b2
commit
d4556e17c1
|
@ -168,10 +168,10 @@ public enum State {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return true if {@link #CREATED} or {@link #PLANNING} or {@link #PLANNED} or {@link #EXECUTION}
|
* @return true if {@link #CREATED} or {@link #PLANNING} or {@link #PLANNED} or {@link #EXECUTION} or {@link #STOPPED}
|
||||||
*/
|
*/
|
||||||
public boolean canSetToExecution() {
|
public boolean canSetToExecution() {
|
||||||
return this == CREATED || this == PLANNING || this == PLANNED || this == EXECUTION;
|
return this == CREATED || this == PLANNING || this == PLANNED || this == EXECUTION || this == State.STOPPED;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue