Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: Robert Lubos <[email protected]> (cherry picked from commit 4625fa7)
- Loading branch information