Preparing for the additions that will allow oid list tracking facilities
to be put in place. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@106 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: PresentsDObjectMgr.java,v 1.8 2001/07/19 19:30:14 mdb Exp $
|
// $Id: PresentsDObjectMgr.java,v 1.9 2001/07/23 21:12:55 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.cocktail.cher.server;
|
package com.threerings.cocktail.cher.server;
|
||||||
|
|
||||||
@@ -117,26 +117,21 @@ public class CherDObjectMgr implements DObjectManager
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
// everything's good so far, apply the event to the object
|
// everything's good so far, apply the event to the object
|
||||||
if (!event.applyToObject(target)) {
|
boolean notify = event.applyToObject(target);
|
||||||
// if the event returns false from applyToObject, this
|
|
||||||
// means it's a silent event and we shouldn't notify
|
// do any internal management necessary based on this
|
||||||
// the subscribers
|
// event
|
||||||
continue;
|
// **TBD**
|
||||||
|
|
||||||
|
// if the event returns false from applyToObject, this
|
||||||
|
// means it's a silent event and we shouldn't notify the
|
||||||
|
// subscribers
|
||||||
|
if (notify) {
|
||||||
|
target.notifySubscribers(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log.warning("Failure applying event [event=" + event +
|
Log.warning("Failure processing event [event=" + event +
|
||||||
", target=" + target + ", error=" + e + "].");
|
|
||||||
Log.logStackTrace(e);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
|
||||||
// and notify the object's subscribers
|
|
||||||
target.notifySubscribers(event);
|
|
||||||
|
|
||||||
} catch (Exception e) {
|
|
||||||
Log.warning("Failure dispatching event [event=" + event +
|
|
||||||
", target=" + target + "].");
|
", target=" + target + "].");
|
||||||
Log.logStackTrace(e);
|
Log.logStackTrace(e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user