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:
@@ -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.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user