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:
parent
b37797b13a
commit
94641c812b
11 changed files with 57 additions and 46 deletions
|
@ -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++;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue