Freak not out if we're shutdown before all of our games are ended.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@265 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Michael Bayne
2007-03-23 21:52:56 +00:00
parent f62498de20
commit 8193a87ff2
@@ -361,6 +361,11 @@ public class TableManager
*/
protected void unmapTable (int gameOid)
{
// if we've been shutdown, then we've got nothing to worry about
if (_tlobj == null) {
return;
}
Table table = _goidMap.get(gameOid);
if (table != null) {
purgeTable(table);
@@ -374,6 +379,11 @@ public class TableManager
*/
protected void updateOccupants (int gameOid)
{
// if we've been shutdown, then we've got nothing to worry about
if (_tlobj == null) {
return;
}
Table table = _goidMap.get(gameOid);
if (table == null) {
Log.warning("Unable to find table for running game [gameOid=" + gameOid + "].");