Bug 1116827: Add check for null mMonitor in MessageChannel::CanSend(); r=dvander

--HG--
extra : rebase_source : c4e4b864fa511d60c2b0dc22e498d2f666c8148f
This commit is contained in:
Aaron Klotz 2014-12-31 13:15:38 -07:00
parent 8b7bd668a0
commit 37a6150ab4

View File

@ -359,6 +359,9 @@ MessageChannel::Connected() const
bool
MessageChannel::CanSend() const
{
if (!mMonitor) {
return false;
}
MonitorAutoLock lock(*mMonitor);
return Connected();
}