We need to be shutdown now so that we can clean up our invocation service.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@259 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Michael Bayne
2007-03-22 00:46:37 +00:00
parent 459d8b75a0
commit ab29481f26
2 changed files with 20 additions and 0 deletions
@@ -38,6 +38,14 @@ public class TableLobbyManager extends LobbyManager
_tmgr = new TableManager(getPlaceObject()); _tmgr = new TableManager(getPlaceObject());
} }
// documentation inherited
protected void didShutdown ()
{
super.didShutdown();
// clean up our table manager
_tmgr.shutdown();
}
// documentation inherited // documentation inherited
protected PlaceObject createPlaceObject () protected PlaceObject createPlaceObject ()
{ {
@@ -81,6 +81,18 @@ public class TableManager
} }
} }
/**
* This must be called when the table manager is no longer needed.
*/
public void shutdown ()
{
CrowdServer.invmgr.clearDispatcher(_tlobj.getTableService());
_tlobj.setTableService(null);
if (_dobj instanceof PlaceObject) {
_dobj.removeListener(this);
}
}
/** /**
* Set the subclass of Table that this instance should generate. * Set the subclass of Table that this instance should generate.
*/ */