We're waiting to hear that our PlaceObject has been destroyed so we can

call didShutdown, so we can't stop listening to it until then.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4824 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Dave Hoover
2007-09-13 21:38:01 +00:00
parent e71fed20c3
commit 59a65e9ef2
@@ -254,10 +254,6 @@ public class PlaceManager
*/
public void shutdown ()
{
// clear out our listenership
_plobj.removeListener(this);
_plobj.removeListener(_bodyUpdater);
// destroy the object and everything will follow from that
CrowdServer.omgr.destroyObject(_plobj.getOid());
@@ -489,6 +485,10 @@ public class PlaceManager
*/
protected void didShutdown ()
{
// clear out our listenership
_plobj.removeListener(this);
_plobj.removeListener(_bodyUpdater);
// let our delegates know that we've shut down
applyToDelegates(new DelegateOp() {
public void apply (PlaceManagerDelegate delegate) {