From c944fcce963a4ab3c6a4ee2b47e6da252ff1319c Mon Sep 17 00:00:00 2001 From: zab2 <zab2@mail.i2p> Date: Mon, 9 Nov 2015 17:44:54 +0000 Subject: [PATCH] log if we can't cancel the future --- core/java/src/net/i2p/util/SimpleTimer2.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/java/src/net/i2p/util/SimpleTimer2.java b/core/java/src/net/i2p/util/SimpleTimer2.java index e8dcc2fcbe..45428c3d16 100644 --- a/core/java/src/net/i2p/util/SimpleTimer2.java +++ b/core/java/src/net/i2p/util/SimpleTimer2.java @@ -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; -- GitLab