fixup! SigHelper: Handle all errors, lower time between retries
All checks were successful
Invidious CI / build (push) Successful in 8m43s

This commit is contained in:
Fijxu 2024-09-19 15:17:04 -03:00
parent 34a11fe1bb
commit 53f0a5b1e0
Signed by: Fijxu
GPG key ID: 32C1DDF333EDA6A4

View file

@ -194,15 +194,15 @@ module Invidious::SigHelper
receive_data
# Handle all errors
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.
@conn.close
loop do
begin
@conn = Connection.new(@uri_or_path)
LOGGER.info("Reconnected to SigHelper!")
LOGGER.info("SigHelper: Reconnected to SigHelper!")
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
next
end