mirror of
https://github.com/eddyem/snippets_library.git
synced 2026-06-21 18:56:23 +03:00
fix
This commit is contained in:
2
socket.c
2
socket.c
@@ -738,7 +738,7 @@ int sl_sock_open(sl_socktype_e type, const char *path, int isserver, int ai_sock
|
|||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
if(connect(sock, p->ai_addr, p->ai_addrlen) == -1){
|
if(connect(sock, p->ai_addr, p->ai_addrlen) == -1){
|
||||||
WARN("connect()");
|
//WARN("connect()");
|
||||||
close(sock); sock = -1;
|
close(sock); sock = -1;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user