Skip to content

Commit

Permalink
[BUGFIX] assigns the return value of _socket.close() to ret
Browse files Browse the repository at this point in the history
  • Loading branch information
Yousif Masoud authored and paul-szczepanek-arm committed Apr 17, 2024
1 parent 8653f9d commit 075e866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 075e866

Please sign in to comment.