mirror of https://github.com/apache/activemq.git
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:
parent
9f7fff7365
commit
75c568012b
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue