mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-23 15:12:56 +00:00
#1069: Improved patch according to feedback in ticket
This commit is contained in:
1 parent
44f8154f07
commit
4613e5f847
1 file changed
+2
-2
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user