Skip to content

Commit d27db21

Browse files
committed
For #1176, should not close fd when success.
1 parent 2d49b9d commit d27db21

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

trunk/src/app/srs_app_utility.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ int srs_socket_connect(string server, int port, int64_t timeout, st_netfd_t* pst
9595
srs_info("connect ok. server=%s, ip=%s, port=%d", server.c_str(), ip.c_str(), port);
9696

9797
*pstfd = stfd;
98-
::close(sock);
9998
return ret;
10099

101100
failed:

0 commit comments

Comments
 (0)