Skip to content
Commit 4625fa71 authored by Robert Lubos's avatar Robert Lubos Committed by Alberto Escolar
Browse files

net: mqtt: Fix possible socket leak with websocket transport



In case underlying TCP/TLS connection is already down, the
websocket_disconnect() call is expected to fail, as it involves
communication. Therefore, mqtt_client_websocket_disconnect() should not
quit early in such cases, as it could lead to an underlying socket leak.

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