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