mirror of https://github.com/apache/activemq.git
after canceling a TimerTask - purge from the Timer list - fix memory leak
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@581736 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7b1fd3484e
commit
1401e69956
|
@ -53,6 +53,7 @@ public final class Scheduler {
|
|||
TimerTask ticket = TIMER_TASKS.remove(task);
|
||||
if (ticket != null) {
|
||||
ticket.cancel();
|
||||
CLOCK_DAEMON.purge();//remove cancelled TimerTasks
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue