Skip to content

Commit f9c902b

Browse files
committed
add the default value back
1 parent 259bd19 commit f9c902b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_minimqtt/adafruit_minimqtt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,12 +214,12 @@ def __init__(
214214
self.on_unsubscribe = None
215215

216216
# pylint: disable=too-many-branches
217-
def _get_connect_socket(self, host, port, *, timeout):
217+
def _get_connect_socket(self, host, port, *, timeout=1):
218218
"""Obtains a new socket and connects to a broker.
219219
220220
:param str host: Desired broker hostname
221221
:param int port: Desired broker port
222-
:param int timeout: Desired socket timeout in seconds
222+
:param int timeout: Desired socket timeout, in seconds
223223
"""
224224
# For reconnections - check if we're using a socket already and close it
225225
if self._sock:

0 commit comments

Comments
 (0)