Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
rlepinski committed Mar 21, 2018
1 parent 8b817c0 commit 321148d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ public void run() {
boolean isExpired = entry.getEnd() >= 0 && entry.getEnd() < System.currentTimeMillis();

// Check if the schedule needs to be rehabilitated or finished due to the edits
if (entry.getExecutionState() == ScheduleEntry.STATE_FINISHED && !isOverLimit && isExpired) {
if (entry.getExecutionState() == ScheduleEntry.STATE_FINISHED && !isOverLimit && !isExpired) {
subscribeForStateChanges = true;
stateChangeTimeStamp = entry.getExecutionStateChangeDate();
entry.setExecutionState(ScheduleEntry.STATE_IDLE);
Expand Down

0 comments on commit 321148d

Please sign in to comment.