log if we can't cancel the future

This commit is contained in:
zab2
2015-11-09 17:44:54 +00:00
parent 077c4a073f
commit c944fcce96

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;