Fix for infinite loop fix.

This commit is contained in:
Nick Winter 2014-03-26 12:34:45 -07:00
parent 515b8723a3
commit 544070e578

View file

@ -95,7 +95,7 @@ module.exports = class Simulator extends CocoClass
onInfiniteLoop: ->
console.warn "Skipping infinitely looping game."
@trigger 'statusUpdate', "Infinite loop detected; grabbing a new game in #{@retryDelayInSeconds} seconds."
_.delay @cleanupAndSimulateAnotherTask, @retryDelayInMilliseconds
_.delay @cleanupAndSimulateAnotherTask, @retryDelayInSeconds * 1000
processResults: (simulationResults) ->
taskResults = @formTaskResultsObject simulationResults