for #334, refine code, use kbps instead skt of rtmp connection.
正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -1294,7 +1294,7 @@ void SrsRtmpConn::http_hooks_on_close() | @@ -1294,7 +1294,7 @@ void SrsRtmpConn::http_hooks_on_close() | ||
1294 | int connection_id = _srs_context->get_id(); | 1294 | int connection_id = _srs_context->get_id(); |
1295 | for (int i = 0; i < (int)on_close->args.size(); i++) { | 1295 | for (int i = 0; i < (int)on_close->args.size(); i++) { |
1296 | std::string url = on_close->args.at(i); | 1296 | std::string url = on_close->args.at(i); |
1297 | - SrsHttpHooks::on_close(url, connection_id, ip, req, skt->get_send_bytes(), skt->get_recv_bytes()); | 1297 | + SrsHttpHooks::on_close(url, connection_id, ip, req, kbps->get_send_bytes(), kbps->get_recv_bytes()); |
1298 | } | 1298 | } |
1299 | } | 1299 | } |
1300 | #endif | 1300 | #endif |
-
请 注册 或 登录 后发表评论