don't retry image on archive error
This commit is contained in:
parent
f11e9c8801
commit
c41b72b765
@ -8,8 +8,8 @@ ImageCommon =
|
|||||||
return true
|
return true
|
||||||
|
|
||||||
error: (file, post, delay, cb) ->
|
error: (file, post, delay, cb) ->
|
||||||
if (post.isDead or post.file.isDead) and file.src.split('/')[2] is 'i.4cdn.org'
|
return cb null unless file.src.split('/')[2] is 'i.4cdn.org'
|
||||||
ImageCommon.retry post, cb
|
return ImageCommon.retry post, cb if post.isDead or post.file.isDead
|
||||||
|
|
||||||
timeoutID = setTimeout ImageCommon.retry, delay, post, cb if delay?
|
timeoutID = setTimeout ImageCommon.retry, delay, post, cb if delay?
|
||||||
return if post.isDead or post.file.isDead
|
return if post.isDead or post.file.isDead
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user