Tiny optimization.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3920 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user