提交 2254fe8c authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

SctpAssociation.cpp: fix OnSctpAssociationBufferedAmount listener call

上级 62071a09
......@@ -1020,7 +1020,13 @@ namespace RTC
void SctpAssociation::OnUsrSctpSentData(uint32_t freeBuffer)
{
auto previousSctpBufferedAmount = this->sctpBufferedAmount;
this->sctpBufferedAmount = this->sctpSendBufferSize - freeBuffer;
this->listener->OnSctpAssociationBufferedAmount(this, this->sctpSendBufferSize);
if (this->sctpBufferedAmount != previousSctpBufferedAmount)
{
this->listener->OnSctpAssociationBufferedAmount(this, this->sctpBufferedAmount);
}
}
} // namespace RTC
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论