Skip to content

Commit

Permalink
Removing task Id from map using remove() (#15918) (#15920)
Browse files Browse the repository at this point in the history
(cherry picked from commit 4223fab)

Signed-off-by: Sagar Upadhyaya <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent b7bec8c commit 008b3b9
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 008b3b9

Please sign in to comment.