Skip to content

Commit

Permalink
[JBPM-10198] delete correct old timer rescheduling a timer (#2336) (#…
Browse files Browse the repository at this point in the history
…2385)

Co-authored-by: Alberto Fanjul <[email protected]>
Co-authored-by: Alberto Fanjul <[email protected]>
  • Loading branch information
3 people authored Feb 6, 2024
1 parent 81d98e6 commit 3b6411d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ protected long calculateDelay(long delay, TimerInstance timer) {

protected TimerInstance rescheduleTimer(TimerInstance timer, TimerManager tm) {
logger.debug("Found timer {} that is going to be canceled", timer);
tm.cancelTimer(timer.getProcessInstanceId(), timer.getTimerId());
tm.cancelTimer(timer.getProcessInstanceId(), timer.getId());
logger.debug("Timer {} canceled successfully", timer);

TimerInstance newTimer = new TimerInstance();
Expand Down

0 comments on commit 3b6411d

Please sign in to comment.