mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Fixed an infinite loop timeout issue.
This commit is contained in:
parent
a8f4baebbc
commit
6813279871
1 changed files with 3 additions and 2 deletions
|
@ -8,8 +8,8 @@ CocoClass = require 'lib/CocoClass'
|
|||
module.exports = class Angel extends CocoClass
|
||||
@nicks: ['Archer', 'Lana', 'Cyril', 'Pam', 'Cheryl', 'Woodhouse', 'Ray', 'Krieger']
|
||||
|
||||
infiniteLoopIntervalDuration: 7500 # check this often
|
||||
infiniteLoopTimeoutDuration: 10000 # wait this long for a response when checking
|
||||
infiniteLoopIntervalDuration: 10000 # check this often; must be longer than other two combined
|
||||
infiniteLoopTimeoutDuration: 7500 # wait this long for a response when checking
|
||||
abortTimeoutDuration: 500 # give in-process or dying workers this long to give up
|
||||
|
||||
constructor: (@shared) ->
|
||||
|
@ -58,6 +58,7 @@ module.exports = class Angel extends CocoClass
|
|||
when 'start-load-frames'
|
||||
clearTimeout @condemnTimeout
|
||||
when 'report-in'
|
||||
@say "Worker reported in."
|
||||
clearTimeout @condemnTimeout
|
||||
when 'end-load-frames'
|
||||
clearTimeout @condemnTimeout
|
||||
|
|
Loading…
Reference in a new issue