Minor fix
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 8s
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 8s
This commit is contained in:
parent
8091c097b6
commit
371c180cc7
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ int create_tcp_socket(unsigned short port) {
|
|||
}
|
||||
|
||||
void cleanup_tcp_socket(int *tcp_socket) {
|
||||
if (tcp_socket && *tcp_socket != -1) {
|
||||
if (tcp_socket && *tcp_socket >= 0) {
|
||||
close(*tcp_socket);
|
||||
*tcp_socket = -1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue