Forgot to set the cancelled flag in cancel()

This commit is contained in:
Trustin Lee 2009-01-20 12:43:28 +00:00
parent b4b0413071
commit 5b27576494

View File

@ -398,6 +398,9 @@ public class HashedWheelTimer implements Timer {
return;
}
cancelled = true;
// Might be called more than once, but doesn't matter.
synchronized (this) {
wheel[stopIndex].remove(this);
}