From bf55267dac805211ff002afdb2210f98d924fc01 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Wed, 23 Apr 2008 17:35:09 +0000 Subject: [PATCH] Let's handle the common case first here too. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5014 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../com/threerings/presents/client/ClientDObjectMgr.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/java/com/threerings/presents/client/ClientDObjectMgr.java b/src/java/com/threerings/presents/client/ClientDObjectMgr.java index 4e334ebe1..3fb042b4d 100644 --- a/src/java/com/threerings/presents/client/ClientDObjectMgr.java +++ b/src/java/com/threerings/presents/client/ClientDObjectMgr.java @@ -152,13 +152,13 @@ public class ClientDObjectMgr Object obj; if ((obj = _actions.getNonBlocking()) != null) { // do the proper thing depending on the object - if (obj instanceof BootstrapNotification) { + if (obj instanceof EventNotification) { + dispatchEvent(((EventNotification)obj).getEvent()); + + } else if (obj instanceof BootstrapNotification) { BootstrapData data = ((BootstrapNotification)obj).getData(); _client.gotBootstrap(data, this); - } else if (obj instanceof EventNotification) { - dispatchEvent(((EventNotification)obj).getEvent()); - } else if (obj instanceof ObjectResponse) { registerObjectAndNotify((ObjectResponse)obj);