1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

For #1176, should not close fd when success.

This commit is contained in:
winlin 2018-07-18 19:21:29 +08:00
parent 2d49b9d1a7
commit d27db215df

View file

@ -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: