Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions azure-iot-device/azure/iot/device/common/mqtt_transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ def on_connect(client, userdata, flags, rc):
logger.warning(
"connection failed, but no on_mqtt_connection_failure_handler handler callback provided"
)
elif not this:
logger.info(
"on_connect called with transport==None. Transport must have been garbage collected. stopping loop"
)
elif this.on_mqtt_connected_handler:
try:
this.on_mqtt_connected_handler()
Expand Down
Loading