Clear out our PlaceManager listenerships when we shutdown to ensure that the
manager can be collected even if the object lingers about for a while and because it sets a good example. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4823 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -254,6 +254,10 @@ 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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user