Skip to content

Commit

Permalink
fix onTime event (#4846)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturKnopik authored Nov 24, 2024
1 parent 2d39fb8 commit b74df25
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/globalevent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,8 @@ void GlobalEvents::timer()
continue;
}

nextExecutionTime = 86400000;
if (nextExecutionTime < nextScheduledTime) {
nextScheduledTime = nextExecutionTime;
}

globalEvent.setNextExecution(globalEvent.getNextExecution() + nextExecutionTime);
nextScheduledTime = globalEvent.getInterval();
globalEvent.setNextExecution(now + nextScheduledTime);

++it;
}
Expand Down

0 comments on commit b74df25

Please sign in to comment.