Tiny optimization.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3920 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-03-08 00:49:04 +00:00
parent af8408fe5d
commit 5f6152230a
@@ -398,10 +398,11 @@ public class InvocationDirector
protected void flushListeners (long now)
{
if (_listeners.size() > 0) {
long then = now - LISTENER_MAX_AGE;
Iterator iter = _listeners.values().iterator();
while (iter.hasNext()) {
ListenerMarshaller lm = (ListenerMarshaller)iter.next();
if (now - lm.mapStamp > LISTENER_MAX_AGE) {
if (then > lm.mapStamp) {
// Log.info("Flushing marshaller " + lm + ".");
iter.remove();
}