Skip to content
Snippets Groups Projects
Commit 1edad942 authored by Michael Eischer's avatar Michael Eischer
Browse files

Fix timer initialization

A newly created timer was always considered as running.
parent 2b394290
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ public class REFITTimer implements Comparable<REFITTimer> {
private final long timerID;
private final TimerCallback callback;
// must not change as long as the timer is active!!!
private long timeout;
private long timeout = -1L;
private boolean hasExpired = false;
......@@ -21,6 +21,7 @@ public class REFITTimer implements Comparable<REFITTimer> {
this.scheduler = scheduler;
this.timerID = timerID;
this.callback = callback;
clear();
}
public long currentTimeout() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment