Skip to content

Commit

Permalink
Removing task Id from map using remove() (#15918)
Browse files Browse the repository at this point in the history
Signed-off-by: Sagar Upadhyaya <[email protected]>
  • Loading branch information
sgup432 authored Sep 12, 2024
1 parent 330b249 commit 4223fab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public void onTaskCompleted(Task task) {
if (!TASKS_TO_TRACK.contains(task.getClass())) {
return;
}
this.cancelledTaskTracker.entrySet().removeIf(entry -> entry.getKey() == task.getId());
this.cancelledTaskTracker.remove(task.getId());
}

/**
Expand Down

0 comments on commit 4223fab

Please sign in to comment.