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:
Michael Bayne
2007-09-11 22:20:28 +00:00
parent bc739b6520
commit e71fed20c3
@@ -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());