From a1383bf7d14e0afa43ad0ecb669def30aada5f27 Mon Sep 17 00:00:00 2001 From: twolaw Date: Mon, 24 Apr 2023 21:02:51 +0200 Subject: [PATCH] Add timeout to Plex server connection (#1466) Co-authored-by: adamus1red --- plextraktsync/plex/PlexServerConnection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plextraktsync/plex/PlexServerConnection.py b/plextraktsync/plex/PlexServerConnection.py index 940852ed2b..b5f6b73e2e 100644 --- a/plextraktsync/plex/PlexServerConnection.py +++ b/plextraktsync/plex/PlexServerConnection.py @@ -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__)