From 4324149cdbe341ccc7bb87003f40baf98d37adb5 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Wed, 21 Dec 2005 19:30:39 +0000 Subject: [PATCH] We queue ourselves up every time an event comes in, so we should only process one event when our run() method is called and then let other (non-distributed object) things get their chance to run in proper order. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3795 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/presents/client/ClientDObjectMgr.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/com/threerings/presents/client/ClientDObjectMgr.java b/src/java/com/threerings/presents/client/ClientDObjectMgr.java index 330c978a4..c779b00ac 100644 --- a/src/java/com/threerings/presents/client/ClientDObjectMgr.java +++ b/src/java/com/threerings/presents/client/ClientDObjectMgr.java @@ -178,9 +178,9 @@ public class ClientDObjectMgr */ public void run () { - // process all of the events on our queue + // process the next event on our queue Object obj; - while ((obj = _actions.getNonBlocking()) != null) { + if ((obj = _actions.getNonBlocking()) != null) { // do the proper thing depending on the object if (obj instanceof BootstrapNotification) { BootstrapData data = ((BootstrapNotification)obj).getData();