Amended patch for AMQ-1235 to not depend on Java 6

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@534046 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James Strachan 2007-05-01 12:51:47 +00:00
parent 9f7fff7365
commit 75c568012b
1 changed files with 3 additions and 2 deletions

View File

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