mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-13 13:35:30 -04:00
Stop headless simulator from exiting if error
This commit is contained in:
parent
24452026d1
commit
1486f31c37
1 changed files with 2 additions and 2 deletions
|
@ -68,14 +68,14 @@ module.exports = class Simulator extends CocoClass
|
|||
|
||||
handleSingleSimulationError: (error) ->
|
||||
console.error "There was an error simulating a single game!", error
|
||||
if @options.headlessClient
|
||||
if @options.headlessClient and @options.simulateOnlyOneGame
|
||||
console.log "GAMERESULT:tie"
|
||||
process.exit(0)
|
||||
@cleanupSimulation()
|
||||
|
||||
handleSingleSimulationInfiniteLoop: ->
|
||||
console.log "There was an infinite loop in the single game!"
|
||||
if @options.headlessClient
|
||||
if @options.headlessClient and @options.simulateOnlyOneGame
|
||||
console.log "GAMERESULT:tie"
|
||||
process.exit(0)
|
||||
@cleanupSimulation()
|
||||
|
|
Loading…
Add table
Reference in a new issue