From 075e8668ada84a139367a446369eae95e45480b8 Mon Sep 17 00:00:00 2001 From: Yousif Masoud Date: Mon, 15 Apr 2024 23:08:40 +0100 Subject: [PATCH] [BUGFIX] assigns the return value of _socket.close() to ret --- source/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/main.cpp b/source/main.cpp index e3f2d27..9841212 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -119,7 +119,7 @@ class CellularDemo { printf("Received from echo server %d Bytes\n", ret); } - _socket.close(); + ret = _socket.close(); if (ret != NSAPI_ERROR_OK) { printf("%sSocket.close() fails, code: %d\n", SOCKET_TYPE, ret);