mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
STAT: Ignore stat for API, only for HTTP streaming clients.
This commit is contained in:
parent
28154e820c
commit
bc569d91a0
3 changed files with 12 additions and 11 deletions
|
@ -179,7 +179,7 @@ public:
|
|||
// @remark the on_disconnect always call, while the on_client is call when
|
||||
// only got the request object, so the client specified by id maybe not
|
||||
// exists in stat.
|
||||
virtual void on_disconnect(std::string id);
|
||||
virtual void on_disconnect(std::string id, bool* exists = NULL);
|
||||
private:
|
||||
// Cleanup the stream if stream is not active and for the last client.
|
||||
void cleanup_stream(SrsStatisticStream* stream);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue