Skip to content
Commit 504cc436 authored by Robert Lubos's avatar Robert Lubos Committed by Anas Nashif
Browse files

net: mqtt: Close the socket right after sending disconnect message



After sending the MQTT disconnect message, no response is expected,
therefore it makes little sense to delay the socket closure.

So far it was expected to call `mqtt_input` function after calling
`mqtt_disconnect` in order to close the socket, which is
counter-intuitive. Simplify this, by closing the socket rightaway
in the `mqtt_disconnect` function.

Signed-off-by: default avatarRobert Lubos <robert.lubos@nordicsemi.no>
parent b6beec9e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment