From fd14cad523dc47efe45d256a338b89e1171f9319 Mon Sep 17 00:00:00 2001 From: kaliko Date: Sun, 10 Mar 2024 17:03:46 +0100 Subject: [PATCH] Fixed mpd_timeout from env var --- mpdaio/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mpdaio/client.py b/mpdaio/client.py index c37e0d6..00dbfed 100644 --- a/mpdaio/client.py +++ b/mpdaio/client.py @@ -41,6 +41,8 @@ class MPDClient: password: str | None = None): #: Connection pool self._pool = ConnectionPool(max_connections=CONNECTION_MAX) + #: connection timeout + self.mpd_timeout = CONNECTION_TIMEOUT self._get_envvars() #: Host used to make connections (:py:obj:`str`) self.host = host or self.server_discovery[0] @@ -48,8 +50,6 @@ class MPDClient: self.pwd = password or self.server_discovery[2] #: port used with the current connection (:py:obj:`int`, :py:obj:`str`) self.port = port or self.server_discovery[1] - #: connection timeout - self.mpd_timeout = CONNECTION_TIMEOUT log.info('Using %s:%s to connect', self.host, self.port) def _get_envvars(self): -- 2.39.5