mirror of https://github.com/apache/activemq.git
applied patch in https://issues.apache.org/activemq/browse/AMQ-1235
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@533740 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
afba1a811d
commit
9f7fff7365
|
@ -51,7 +51,8 @@ public class Scheduler {
|
||||||
ScheduledFuture ticket = (ScheduledFuture) clockTickets.remove(task);
|
ScheduledFuture ticket = (ScheduledFuture) clockTickets.remove(task);
|
||||||
if( ticket!=null ) {
|
if( ticket!=null ) {
|
||||||
ticket.cancel(false);
|
ticket.cancel(false);
|
||||||
clockDaemon.remove(task);
|
if (ticket instanceof RunnableScheduledFuture)
|
||||||
|
clockDaemon.remove((RunnableScheduledFuture) ticket);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue