mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
WebRTC: Refine code and destroy session when tcp close.
This commit is contained in:
parent
07339e1417
commit
efa0851476
10 changed files with 181 additions and 157 deletions
|
@ -681,6 +681,7 @@ srs_error_t SrsTcpClient::connect()
|
|||
return srs_error_wrap(err, "tcp: connect %s:%d to=%dms", host.c_str(), port, srsu2msi(timeout));
|
||||
}
|
||||
|
||||
// TODO: FIMXE: The timeout set on io need to be set to new object.
|
||||
srs_freep(io);
|
||||
io = new SrsStSocket(stfd);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue