mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 09:35:39 -05:00
Include other timeout error codes for good measure
This commit is contained in:
parent
36449bb6b6
commit
5dc3ebe9b1
1 changed files with 1 additions and 1 deletions
|
@ -309,7 +309,7 @@ class ModelResource extends Resource
|
|||
console.log "Didn't load model in #{timeToWait}ms (attempt ##{@loadsAttempted}), trying again: ", this
|
||||
@fetchModel()
|
||||
@listenTo @model, 'error', (levelComponent, request) ->
|
||||
if request.status not in [504, 524]
|
||||
if request.status not in [408, 504, 522, 524]
|
||||
clearTimeout(@timeoutID)
|
||||
clearTimeout(@timeoutID) if @timeoutID
|
||||
@timeoutID = setTimeout(tryLoad, timeToWait)
|
||||
|
|
Loading…
Reference in a new issue