From 14fe7224c8f106d03122c48197230b87ade9e2e0 Mon Sep 17 00:00:00 2001 From: adamus1red Date: Thu, 16 Mar 2023 10:05:44 +0000 Subject: [PATCH] Add timeout to Plex server connection --- 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__)