From 8193a87ff272ff047c830f4560c563622550d313 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Fri, 23 Mar 2007 21:52:56 +0000 Subject: [PATCH] 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 --- .../com/threerings/parlor/server/TableManager.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/java/com/threerings/parlor/server/TableManager.java b/src/java/com/threerings/parlor/server/TableManager.java index c6e1214b..a7368d7b 100644 --- a/src/java/com/threerings/parlor/server/TableManager.java +++ b/src/java/com/threerings/parlor/server/TableManager.java @@ -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 + "].");