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

Fix #786, simply don't reuse object. 3.0.20

This commit is contained in:
winlin 2017-03-02 16:43:06 +08:00
parent 7680ac04ad
commit 308c6fee18
9 changed files with 38 additions and 19 deletions

View file

@ -48,7 +48,7 @@ SrsConnection::SrsConnection(IConnectionManager* cm, st_netfd_t c, string cip)
expired = false;
create_time = srs_get_system_time_ms();
skt = new SrsStSocket(c);
skt = new SrsStSocket();
kbps = new SrsKbps();
kbps->set_io(skt, skt);
@ -105,6 +105,12 @@ void SrsConnection::dispose()
int SrsConnection::start()
{
int ret = ERROR_SUCCESS;
if ((ret = skt->initialize(stfd)) != ERROR_SUCCESS) {
return ret;
}
return pthread->start();
}