Skip to content

Commit

Permalink
Alow 2 minutes instead of 15 seconds to allow AVAHI comes up
Browse files Browse the repository at this point in the history
By retrying 24 times 5 seconds when there is no route found we allow 2
minutes to allow AVAHI synchronized instead of 15 seconds.
  • Loading branch information
Littlesat committed Jan 5, 2025
1 parent 09ca5b4 commit 020dd77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/python/Components/ImportChannels.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def getUrl(self, url, timeout=5):
sleep(5)
elif "[Errno 113]" in str(e.reason) or "[Errno -2]" in str(e.reason):
try_counter += 1
if try_counter >= 3:
if try_counter >= 24:
print(f"[Import Channels] No route to host, name or service not known {url} tried {try_counter} time(s) and give up")
return {}
else:
Expand Down

0 comments on commit 020dd77

Please sign in to comment.