Skip to content

Commit

Permalink
Adjust has_internet check
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Dec 6, 2024
1 parent e6e489e commit 449b1aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qBitrr/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def has_internet(client: qbittorrentapi.Client):

url = random.choice(PING_URLS)
try:
if not is_connected(url) or not client.transfer_info()["connection_status"] == "connected":
if not is_connected(url) or client.transfer_info()["connection_status"] == "disconnected":
return False
except:
logger.error("Error getting qbittorrent transfer info %s", client.transfer_info())
Expand Down

0 comments on commit 449b1aa

Please sign in to comment.