提交 5afbbd54 authored 作者: José Luis Millán's avatar José Luis Millán

Score: reset score if the are no expected or sent packets

上级 47cfff41
...@@ -343,7 +343,11 @@ namespace RTC ...@@ -343,7 +343,11 @@ namespace RTC
// We didn't expect more packets to come. // We didn't expect more packets to come.
if (expected == 0) if (expected == 0)
{
ResetScore();
return; return;
}
this->expectedPrior = totalExpected; this->expectedPrior = totalExpected;
......
...@@ -535,7 +535,11 @@ namespace RTC ...@@ -535,7 +535,11 @@ namespace RTC
// We didn't send any packet. // We didn't send any packet.
if (sent == 0) if (sent == 0)
{
ResetScore();
return; return;
}
this->sentPrior = totalSent; this->sentPrior = totalSent;
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论