Skip to content

Commit 075e866

Browse files
Yousif Masoudpaul-szczepanek-arm
Yousif Masoud
authored andcommitted
[BUGFIX] assigns the return value of _socket.close() to ret
1 parent 8653f9d commit 075e866

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/main.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class CellularDemo {
119119
printf("Received from echo server %d Bytes\n", ret);
120120
}
121121

122-
_socket.close();
122+
ret = _socket.close();
123123

124124
if (ret != NSAPI_ERROR_OK) {
125125
printf("%sSocket.close() fails, code: %d\n", SOCKET_TYPE, ret);

0 commit comments

Comments
 (0)