Make it possible to have a distributed object destroyed when its last

subscriber is removed.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2602 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2003-05-22 17:23:53 +00:00
parent 8197441658
commit d76d4e89ff
4 changed files with 25 additions and 9 deletions
@@ -1,5 +1,5 @@
//
// $Id: PresentsDObjectMgr.java,v 1.31 2003/04/10 17:48:42 mdb Exp $
// $Id: PresentsDObjectMgr.java,v 1.32 2003/05/22 17:23:53 mdb Exp $
package com.threerings.presents.server;
@@ -105,9 +105,12 @@ public class PresentsDObjectMgr
}
// inherit documentation from the interface
public void removedLastSubscriber (DObject obj)
public void removedLastSubscriber (DObject obj, boolean deathWish)
{
// nothing to do here, our objects live forever!
// destroy the object if it so desires
if (deathWish) {
destroyObject(obj.getOid());
}
}
/**