Commit 075d5d30 authored by Andreas Huber's avatar Andreas Huber Committed by Mahesh Mahadevan
Browse files

net: mqtt: Fix missing close function



If POSIX_API is not configured the close function is not available.
Use zsock_close instead.

Signed-off-by: default avatarAndreas Huber <andreas.huber@ch.sauter-bc.com>
parent fad8a1ff
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -77,7 +77,7 @@ int mqtt_client_websocket_connect(struct mqtt_client *client)
		NET_ERR("Websocket connect failed (%d)",
			 client->transport.websocket.sock);

		(void)close(transport_sock);
		(void)zsock_close(transport_sock);
		return client->transport.websocket.sock;
	}