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:
parent
99c13fb1c1
commit
a3ea83f504
2 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue