pull/237/head
Andrew Mirsky 2025-06-26 13:08:24 -04:00
rodzic 1608edff91
commit 311dec7774
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: A98E67635CDF2C39
1 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -456,7 +456,7 @@ class MQTTClient:
# if not self._handler:
self._handler = ClientProtocolHandler(self.plugins_manager)
connection_timeout = self.config.get('connection_timeout', None)
connection_timeout = self.config.get("connection_timeout", None)
if secure:
sc = ssl.create_default_context(
@ -480,10 +480,10 @@ class MQTTClient:
if scheme in ("mqtt", "mqtts"):
conn_reader, conn_writer = await asyncio.wait_for(
asyncio.open_connection(
self.session.remote_address,
self.session.remote_port,
**kwargs,
), timeout=connection_timeout)
self.session.remote_address,
self.session.remote_port,
**kwargs,
), timeout=connection_timeout)
reader = StreamReaderAdapter(conn_reader)
writer = StreamWriterAdapter(conn_writer)