From 4613e5f847529738c65c1d438f5cdf9a7ffd2cc4 Mon Sep 17 00:00:00 2001 From: dev Date: Wed, 8 Apr 2015 17:49:28 +0000 Subject: [PATCH] #1069: Improved patch according to feedback in ticket --- core/java/src/net/i2p/util/SimpleTimer2.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/java/src/net/i2p/util/SimpleTimer2.java b/core/java/src/net/i2p/util/SimpleTimer2.java index 8d2a0cddf..a01e297d7 100644 --- a/core/java/src/net/i2p/util/SimpleTimer2.java +++ b/core/java/src/net/i2p/util/SimpleTimer2.java @@ -157,7 +157,7 @@ public class SimpleTimer2 { */ public void addPeriodicEvent(final SimpleTimer.TimedEvent event, final long timeoutMs) { - new PeriodicTimedEvent(SimpleTimer2.getInstance(), timeoutMs, timeoutMs) { + new PeriodicTimedEvent(this, timeoutMs, timeoutMs) { @Override public void timeReached() { event.timeReached(); @@ -179,7 +179,7 @@ public class SimpleTimer2 { */ public void addPeriodicEvent(final SimpleTimer.TimedEvent event, final long delay, final long timeoutMs) { - new PeriodicTimedEvent(SimpleTimer2.getInstance(), delay, timeoutMs) { + new PeriodicTimedEvent(this, delay, timeoutMs) { @Override public void timeReached() { event.timeReached();