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:
parent
2d49b9d1a7
commit
d27db215df
1 changed files with 0 additions and 1 deletions
|
@ -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);
|
||||
|
||||
*pstfd = stfd;
|
||||
::close(sock);
|
||||
return ret;
|
||||
|
||||
failed:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue