Skip to content

umqtt.simple: add force_close parameter to disconnect() to ensure soc…#243

Closed
jzafran wants to merge 1 commit intomicropython:masterfrom
jzafran:umqtt-simple-disconnect
Closed

umqtt.simple: add force_close parameter to disconnect() to ensure soc…#243
jzafran wants to merge 1 commit intomicropython:masterfrom
jzafran:umqtt-simple-disconnect

Conversation

@jzafran
Copy link
Copy Markdown

@jzafran jzafran commented Dec 30, 2017

Add force_close argument to umqtt.simple.MQTTClient.disconnect() that, when set, ensures socket.close() is called even if there's an error while sending the disconnect message to the MQTT server.

The default behavior is the same as before - I'm tempted to change it; I believe it would be a better default, but I don't want to break any backward compatibility.

umqtt.simple: add force_close parameter to disconnect() to ensure socket is closed if there's an error sending disconnect message
@jzafran jzafran closed this Oct 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant