mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@464880 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7416155e42
commit
35707b3c56
|
@ -51,7 +51,7 @@ public class Scheduler {
|
||||||
synchronized static public void cancel(Runnable task) {
|
synchronized static public void cancel(Runnable task) {
|
||||||
ScheduledFuture ticket = (ScheduledFuture) clockTickets.remove(task);
|
ScheduledFuture ticket = (ScheduledFuture) clockTickets.remove(task);
|
||||||
if( ticket!=null ) {
|
if( ticket!=null ) {
|
||||||
ticket.cancel(true);
|
ticket.cancel(false);
|
||||||
clockDaemon.remove(task);
|
clockDaemon.remove(task);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue