Skip to content

Commit

Permalink
Bug 1278320 - DataChannel should return 0 if the stream is not active…
Browse files Browse the repository at this point in the history
…, r=drno
  • Loading branch information
bakulf committed Jun 29, 2016
1 parent f8c5992 commit 841e0f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions netwerk/sctp/datachannel/DataChannel.h
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,10 @@ class DataChannel {
// Amount of data buffered to send
uint32_t GetBufferedAmount()
{
if (!mConnection) {
return 0;
}

MutexAutoLock lock(mConnection->mLock);
return GetBufferedAmountLocked();
}
Expand Down

0 comments on commit 841e0f3

Please sign in to comment.