For #1176, should not close fd when success.
This commit is contained in:
parent
2d49b9d1a7
commit
d27db215df
|
|
@ -95,7 +95,6 @@ int srs_socket_connect(string server, int port, int64_t timeout, st_netfd_t* pst
|
||||||
srs_info("connect ok. server=%s, ip=%s, port=%d", server.c_str(), ip.c_str(), port);
|
srs_info("connect ok. server=%s, ip=%s, port=%d", server.c_str(), ip.c_str(), port);
|
||||||
|
|
||||||
*pstfd = stfd;
|
*pstfd = stfd;
|
||||||
::close(sock);
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
failed:
|
failed:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user