1
0
Fork 0
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:
winlin 2022-08-29 07:54:40 +08:00
parent 28154e820c
commit bc569d91a0
3 changed files with 12 additions and 11 deletions

View file

@ -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);