Make single game simulate another task if error

This commit is contained in:
Michael Schmatz 2014-06-06 13:26:15 -07:00
parent 31bb9c8807
commit 0c0084dd4b

View file

@ -71,14 +71,14 @@ module.exports = class Simulator extends CocoClass
if @options.headlessClient and @options.simulateOnlyOneGame
console.log "GAMERESULT:tie"
process.exit(0)
@cleanupSimulation()
@cleanupAndSimulateAnotherTask()
handleSingleSimulationInfiniteLoop: ->
console.log "There was an infinite loop in the single game!"
if @options.headlessClient and @options.simulateOnlyOneGame
console.log "GAMERESULT:tie"
process.exit(0)
@cleanupSimulation()
@cleanupAndSimulateAnotherTask()
processSingleGameResults: (simulationResults) ->
taskResults = @formTaskResultsObject simulationResults