git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@533740 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hiram R. Chirino 2007-04-30 13:15:39 +00:00
parent afba1a811d
commit 9f7fff7365
1 changed files with 2 additions and 1 deletions

View File

@ -51,7 +51,8 @@ public class Scheduler {
ScheduledFuture ticket = (ScheduledFuture) clockTickets.remove(task);
if( ticket!=null ) {
ticket.cancel(false);
clockDaemon.remove(task);
if (ticket instanceof RunnableScheduledFuture)
clockDaemon.remove((RunnableScheduledFuture) ticket);
}
}