Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Øystein Haug Olsen authored and frederikaalund committed Nov 11, 2020
1 parent 5dcebdb commit 0a7f2fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asyncio_mqtt/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def id(self):
async def connect(self, *, timeout=10):
try:
loop = asyncio.get_running_loop()
_result = await loop.run_in_executor(None, self._client.connect, self._hostname, self._port, 60)
await loop.run_in_executor(None, self._client.connect, self._hostname, self._port, 60)
# paho.mqttClient.socket() return non-None after the call to connect.
self._client.socket().setsockopt(socket.SOL_SOCKET, socket.SO_SNDBUF, 2048)
# paho.mqtt.Client.connect may raise one of several exceptions.
Expand Down

0 comments on commit 0a7f2fc

Please sign in to comment.