Commit 623b129a authored by Patrik Persson's avatar Patrik Persson

fix for spurious wakeups

parent c10d2ce8
......@@ -66,7 +66,7 @@ public abstract class LivenessTracker {
now = System.currentTimeMillis();
next = mostImminent();
if (next.getValue() <= now) {
if (next != null && next.getValue() <= now) {
Thread timedOut = next.getKey();
timeouts.remove(timedOut);
return timedOut;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment