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
Co-authored-by: Alberto Fanjul <afanjula@redhat.com>
  • Loading branch information
albfan and Alberto Fanjul authored Jan 19, 2024
1 parent b3f8fec commit 55854cb
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 55854cb

Please sign in to comment.