log if we can't cancel the future

This commit is contained in:
zab2 committed 2015-11-09 17:44:54 +00:00
1 parent 077c4a073f
commit c944fcce96
1 file changed
+2 -1
+2 -1
View File
@@ -385,7 +385,8 @@ public class SimpleTimer2 {
boolean cancelled = _future.cancel(false);
if (cancelled)
_state = TimedEventState.CANCELLED;
else {} // log something as this could be serious, we remain RUNNING otherwise
else
_log.warn("could not cancel "+this);
return cancelled;
}
return false;