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:
@@ -254,10 +254,6 @@ public class PlaceManager
|
|||||||
*/
|
*/
|
||||||
public void shutdown ()
|
public void shutdown ()
|
||||||
{
|
{
|
||||||
// clear out our listenership
|
|
||||||
_plobj.removeListener(this);
|
|
||||||
_plobj.removeListener(_bodyUpdater);
|
|
||||||
|
|
||||||
// destroy the object and everything will follow from that
|
// destroy the object and everything will follow from that
|
||||||
CrowdServer.omgr.destroyObject(_plobj.getOid());
|
CrowdServer.omgr.destroyObject(_plobj.getOid());
|
||||||
|
|
||||||
@@ -489,6 +485,10 @@ public class PlaceManager
|
|||||||
*/
|
*/
|
||||||
protected void didShutdown ()
|
protected void didShutdown ()
|
||||||
{
|
{
|
||||||
|
// clear out our listenership
|
||||||
|
_plobj.removeListener(this);
|
||||||
|
_plobj.removeListener(_bodyUpdater);
|
||||||
|
|
||||||
// let our delegates know that we've shut down
|
// let our delegates know that we've shut down
|
||||||
applyToDelegates(new DelegateOp() {
|
applyToDelegates(new DelegateOp() {
|
||||||
public void apply (PlaceManagerDelegate delegate) {
|
public void apply (PlaceManagerDelegate delegate) {
|
||||||
|
|||||||
Reference in New Issue
Block a user