fixup! SigHelper: Handle all errors, lower time between retries
All checks were successful
Invidious CI / build (push) Successful in 8m43s
All checks were successful
Invidious CI / build (push) Successful in 8m43s
This commit is contained in:
parent
34a11fe1bb
commit
53f0a5b1e0
1 changed files with 3 additions and 3 deletions
|
@ -194,15 +194,15 @@ module Invidious::SigHelper
|
||||||
receive_data
|
receive_data
|
||||||
# Handle all errors
|
# Handle all errors
|
||||||
rescue ex
|
rescue ex
|
||||||
LOGGER.info("Connection to helper died with '#{ex.message}' trying to reconnect...")
|
LOGGER.info("SigHelper: Connection to helper died with '#{ex.message}' trying to reconnect...")
|
||||||
# We close the socket because for some reason is not closed.
|
# We close the socket because for some reason is not closed.
|
||||||
@conn.close
|
@conn.close
|
||||||
loop do
|
loop do
|
||||||
begin
|
begin
|
||||||
@conn = Connection.new(@uri_or_path)
|
@conn = Connection.new(@uri_or_path)
|
||||||
LOGGER.info("Reconnected to SigHelper!")
|
LOGGER.info("SigHelper: Reconnected to SigHelper!")
|
||||||
rescue ex
|
rescue ex
|
||||||
LOGGER.debug("Reconnection to helper unsuccessful with error '#{ex.message}' retrying")
|
LOGGER.debug("SigHelper: Reconnection to helper unsuccessful with error '#{ex.message}' retrying")
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue