正在显示
2 个修改的文件
包含
2 行增加
和
3 行删除
| @@ -210,9 +210,7 @@ int SrsRtmpConn::do_cycle() | @@ -210,9 +210,7 @@ int SrsRtmpConn::do_cycle() | ||
| 210 | ret = service_cycle(); | 210 | ret = service_cycle(); |
| 211 | 211 | ||
| 212 | http_hooks_on_close(); | 212 | http_hooks_on_close(); |
| 213 | - SrsStatistic* stat = SrsStatistic::instance(); | ||
| 214 | - stat->on_disconnect(_srs_context->get_id()); | ||
| 215 | - | 213 | + |
| 216 | return ret; | 214 | return ret; |
| 217 | } | 215 | } |
| 218 | 216 |
| @@ -896,6 +896,7 @@ void SrsServer::remove(SrsConnection* conn) | @@ -896,6 +896,7 @@ void SrsServer::remove(SrsConnection* conn) | ||
| 896 | 896 | ||
| 897 | SrsStatistic* stat = SrsStatistic::instance(); | 897 | SrsStatistic* stat = SrsStatistic::instance(); |
| 898 | stat->kbps_add_delta(conn); | 898 | stat->kbps_add_delta(conn); |
| 899 | + stat->on_disconnect(conn->srs_id()); | ||
| 899 | 900 | ||
| 900 | // all connections are created by server, | 901 | // all connections are created by server, |
| 901 | // so we free it here. | 902 | // so we free it here. |
-
请 注册 或 登录 后发表评论