mirror of https://github.com/captn3m0/muse-dl.git
Don't backoff for more than 256 seconds (~4 min)
This commit is contained in:
parent
ebf1b57e22
commit
cea7dd1702
|
@ -83,6 +83,7 @@ module Muse::Dl
|
|||
puts ex.backtrace.join("\n ")
|
||||
puts "Error. Skipping book: #{url}. Waiting for #{delay_secs} seconds before continuing."
|
||||
sleep(delay_secs)
|
||||
if delay_secs < 256
|
||||
delay_secs *= 2
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue