Skip to content

Commit

Permalink
For #1176, should not close fd when success.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Jul 18, 2018
1 parent 2d49b9d commit d27db21
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion trunk/src/app/srs_app_utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d27db21

Please sign in to comment.