修复http-flv直播超时bug

This commit is contained in:
xiongziliang 2018-08-31 15:54:25 +08:00
parent 17423828ce
commit a9048b4a4d

View File

@ -635,6 +635,7 @@ void HttpSession::onWrite(const Buffer::Ptr &buffer) {
if(!strongSelf) { if(!strongSelf) {
return; return;
} }
strongSelf->m_ticker.resetTime();
strongSelf->m_ui64TotalBytes += buffer->size(); strongSelf->m_ui64TotalBytes += buffer->size();
strongSelf->send(buffer); strongSelf->send(buffer);
}); });
@ -650,6 +651,7 @@ void HttpSession::onWrite(const char *data, int len) {
if(!strongSelf) { if(!strongSelf) {
return; return;
} }
strongSelf->m_ticker.resetTime();
strongSelf->m_ui64TotalBytes += buffer->size(); strongSelf->m_ui64TotalBytes += buffer->size();
strongSelf->send(buffer); strongSelf->send(buffer);
}); });