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

directly free the transport, not need to close for maybe NULL

This commit is contained in:
winlin 2017-01-20 12:11:52 +08:00
parent 99c13fb1c1
commit a3ea83f504
2 changed files with 1 additions and 2 deletions

View file

@ -218,8 +218,6 @@ void SrsHttpClient::kbps_sample(const char* label, int64_t age)
void SrsHttpClient::disconnect()
{
kbps->set_io(NULL, NULL);
transport->close();
srs_freep(transport);
}

View file

@ -217,6 +217,7 @@ public:
* client.connect();
* client.write("Hello world!", 12, NULL);
* client.read(buf, 4096, NULL);
* @remark User can directly free the object, which will close the fd.
*/
class SrsTcpClient : public ISrsProtocolReaderWriter
{