Might as well stop the timer if we're cleared.
It's the closest thing to a shutdown. I've got half a mind to write a LinkedHashMap, and then an ExpiringHashMap on top of that, and then have ExpiringHashSet just utilize that in its internals. But, YAGNI, for now... for now... git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5784 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -61,6 +61,7 @@ public class ExpiringSet extends EventDispatcher
|
|||||||
{
|
{
|
||||||
// simply trunate the data array
|
// simply trunate the data array
|
||||||
_data.length = 0;
|
_data.length = 0;
|
||||||
|
_timer.stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
// from Set
|
// from Set
|
||||||
|
|||||||
Reference in New Issue
Block a user