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

pull/756/head
winlin 8 years ago
parent 99c13fb1c1
commit a3ea83f504

@ -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);
}

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

Loading…
Cancel
Save