mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-02 07:53:43 +00:00
Clean up
This commit is contained in:
+2
-2
@@ -73,7 +73,7 @@ int protect_socket(int fd)
|
||||
|
||||
if (connect(sock, (struct sockaddr *)&addr, sizeof(addr)) == -1) {
|
||||
LOGE("[android] connect() failed: %s (socket fd = %d), path: %s\n",
|
||||
strerror(errno), sock, path);
|
||||
strerror(errno), sock, path);
|
||||
close(sock);
|
||||
return -1;
|
||||
}
|
||||
@@ -122,7 +122,7 @@ int send_traffic_stat(uint64_t tx, uint64_t rx)
|
||||
|
||||
if (connect(sock, (struct sockaddr *)&addr, sizeof(addr)) == -1) {
|
||||
LOGE("[android] connect() failed: %s (socket fd = %d), path: %s\n",
|
||||
strerror(errno), sock, path);
|
||||
strerror(errno), sock, path);
|
||||
close(sock);
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user