Skip to content

Commit

Permalink
Merge pull request #710 from samson0v:master
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreF committed Jan 1, 2024
2 parents 552fda8 + dd229dc commit e4e3f88
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/paho/mqtt/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2412,6 +2412,10 @@ def _packet_read(self):
self._easy_log(
MQTT_LOG_ERR, 'failed to receive on socket: %s', err)
return MQTT_ERR_CONN_LOST
except TimeoutError as err:
self._easy_log(
MQTT_LOG_ERR, 'timeout on socket: %s', err)
return MQTT_ERR_CONN_LOST
else:
if len(command) == 0:
return MQTT_ERR_CONN_LOST
Expand Down

0 comments on commit e4e3f88

Please sign in to comment.