Idempotency is always handy.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@264 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Michael Bayne
2007-03-23 20:45:58 +00:00
parent 418a549af7
commit f62498de20
@@ -86,11 +86,15 @@ public class TableManager
*/ */
public void shutdown () public void shutdown ()
{ {
CrowdServer.invmgr.clearDispatcher(_tlobj.getTableService()); if (_tlobj != null) {
_tlobj.setTableService(null); CrowdServer.invmgr.clearDispatcher(_tlobj.getTableService());
_tlobj.setTableService(null);
}
if (_dobj instanceof PlaceObject) { if (_dobj instanceof PlaceObject) {
_dobj.removeListener(this); _dobj.removeListener(this);
} }
_tlobj = null;
_dobj = null;
} }
/** /**