Clear PacketBuffer when full.

BUG=webrtc:5514

Review-Url: https://codereview.webrtc.org/2769963003
Cr-Commit-Position: refs/heads/master@{#17362}
This commit is contained in:
philipel
2017-03-23 06:50:37 -07:00
committed by Commit bot
parent f17fd87d5b
commit c703dc21a6
2 changed files with 4 additions and 3 deletions

View File

@ -148,7 +148,8 @@ void PacketBuffer::Clear() {
bool PacketBuffer::ExpandBufferSize() {
if (size_ == max_size_) {
LOG(LS_WARNING) << "PacketBuffer is already at max size (" << max_size_
<< "), failed to increase size.";
<< "), failed to increase size. Clearing PacketBuffer.";
Clear();
return false;
}