3 things: Sanity, clarity, correctness.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@587 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Ray Greenwell
2008-04-29 18:33:46 +00:00
parent e3cf4a762d
commit 759050d576
@@ -847,20 +847,22 @@ public class GameManager extends PlaceManager
super.bodyLeft(bodyOid); super.bodyLeft(bodyOid);
} }
@Override // from PlaceManager
protected long idleUnloadPeriod ()
{
// We shutdown immediately on becoming empty, so there's no need to create a
// shutdown interval to keep us in memory longer than we would be otherwise
return 0;
}
/** /**
* When a game room becomes empty, we cancel the game if it's still in progress and close down * When a game room becomes empty, we cancel the game if it's still in progress and close down
* the game room. * the game room.
*/ */
@Override
protected void placeBecameEmpty () protected void placeBecameEmpty ()
{ {
// We do not call super.
// Duplicated from super(): let our delegates do their business
applyToDelegates(new DelegateOp() {
public void apply (PlaceManagerDelegate delegate) {
delegate.placeBecameEmpty();
}
});
// log.info("Game room empty. Going away. [game=" + where() + "]."); // log.info("Game room empty. Going away. [game=" + where() + "].");
// if we're in play then move to game over // if we're in play then move to game over