Prevent server spew when multiple EZGame clients attempt to end the game.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@126 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
package com.threerings.ezgame.server;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
|
||||
@@ -85,6 +86,9 @@ public class EZGameManager extends GameManager
|
||||
InvocationService.InvocationListener listener)
|
||||
throws InvocationException
|
||||
{
|
||||
if (!_gameObj.isInPlay()) {
|
||||
throw new InvocationException("e.already_ended");
|
||||
}
|
||||
validateStateModification(caller);
|
||||
|
||||
_winnerIndexes = winners;
|
||||
|
||||
Reference in New Issue
Block a user