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

fix #442, support kickoff client.

This commit is contained in:
winlin 2015-08-22 13:36:15 +08:00
parent b37797b13a
commit 94641c812b
11 changed files with 57 additions and 46 deletions

View file

@ -322,7 +322,7 @@ void SrsStatistic::on_stream_close(SrsRequest* req)
stream->close();
}
int SrsStatistic::on_client(int id, SrsRequest* req)
int SrsStatistic::on_client(int id, SrsRequest* req, SrsConnection* conn)
{
int ret = ERROR_SUCCESS;
@ -341,6 +341,7 @@ int SrsStatistic::on_client(int id, SrsRequest* req)
}
// got client.
client->conn = conn;
stream->nb_clients++;
vhost->nb_clients++;