From c92d40e00b13412bf9e15d4ef2315924acb29cf7 Mon Sep 17 00:00:00 2001 From: winlin Date: Mon, 16 Mar 2015 15:40:43 +0800 Subject: [PATCH] for #334, refine code, use kbps instead skt of rtmp connection. --- trunk/src/app/srs_app_rtmp_conn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/src/app/srs_app_rtmp_conn.cpp b/trunk/src/app/srs_app_rtmp_conn.cpp index 5d63a41c2..7d4949b36 100644 --- a/trunk/src/app/srs_app_rtmp_conn.cpp +++ b/trunk/src/app/srs_app_rtmp_conn.cpp @@ -1294,7 +1294,7 @@ void SrsRtmpConn::http_hooks_on_close() int connection_id = _srs_context->get_id(); for (int i = 0; i < (int)on_close->args.size(); i++) { std::string url = on_close->args.at(i); - SrsHttpHooks::on_close(url, connection_id, ip, req, skt->get_send_bytes(), skt->get_recv_bytes()); + SrsHttpHooks::on_close(url, connection_id, ip, req, kbps->get_send_bytes(), kbps->get_recv_bytes()); } } #endif