Don't allow the dummy DObject to be destroyed. That shouldn't happen in the normal course of

operations, but previously if someone called destroy on an uninitialized DObject or called
PresentsDObjectManager.destroyObject with its oid, it'd be destroyed.  Subscribing to objects
depends on that object existing, so if it's destroyed, the server will continue to function normally
except that subscription requests will be silently dropped.



git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5851 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Charlie Groves
2009-07-05 23:18:51 +00:00
parent c260457c6e
commit 03408cbda8
3 changed files with 23 additions and 4 deletions
@@ -962,7 +962,7 @@ public class PresentsSession
// from interface ProxySubscriber
public void eventReceived (DEvent event)
{
if (event instanceof PresentsDObjectMgr.AccessObjectEvent) {
if (event instanceof PresentsDObjectMgr.AccessObjectEvent<?>) {
log.warning("Ignoring event that shouldn't be forwarded " + event + ".",
new Exception());
return;