mqtt: fix tls for version 2.0+ clients

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan committed 2026-02-25 15:28:40 -05:00
1 parent 293a4cfc21
commit 3fbe6ee218
1 file changed
+6 -1
+6 -1
View File
@@ -217,7 +217,12 @@ class ExtPahoClient(paho_mqtt.Client):
if not self.suppress_exceptions:
raise
self._sock = sock or self._create_socket() # type: ignore
if sock is None:
self._sock = self._create_socket() # type: ignore
elif self._ssl:
self._sock = self._ssl_wrap_socket(sock)
else:
self._sock = sock # type: ignore
self._sock.setblocking(False) # type: ignore[attr-defined]
self._registered_write = False