Skip to content

Commit

Permalink
Add timeout to Plex server connection (#1466)
Browse files Browse the repository at this point in the history
Co-authored-by: adamus1red <[email protected]>
  • Loading branch information
simonc56 and adamus1red authored Apr 24, 2023
1 parent 54d07b4 commit a1383bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plextraktsync/plex/PlexServerConnection.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def connect(self, urls: list[str], token: str):
for url in urls:
self.logger.debug(f"Trying url: {url}")
try:
return PlexServer(baseurl=url, token=token, session=self.session)
return PlexServer(baseurl=url, token=token, session=self.session, timeout=self.timeout)
except SSLError as e:
self.logger.error(e)
message = str(e.__context__)
Expand Down

0 comments on commit a1383bf

Please sign in to comment.