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/branches/activemq-4.1@534050 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
156479e213
commit
148a2a0437
|
@ -52,8 +52,8 @@ 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