Games can be now cancelled by system if there is an error processing them.

This commit is contained in:
marcins78@gmail.com
2012-05-09 18:11:25 +00:00
parent 6df0affb0d
commit c64d1bedb3

View File

@@ -128,6 +128,12 @@ public class DefaultLotroGame implements LotroGame {
public void cancelGame() {
if (!_finished) {
_cancelled = true;
if (_gameState != null) {
_gameState.sendMessage("Game was cancelled do to an error, the error was logged and will be fixed soon.");
_gameState.sendMessage("Please post the replay game link and description of what happened on the TLHH forum.");
}
for (GameResultListener gameResultListener : _gameResultListeners)
gameResultListener.gameCancelled();