mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1116827: Add check for null mMonitor in MessageChannel::CanSend(); r=dvander
--HG-- extra : rebase_source : c4e4b864fa511d60c2b0dc22e498d2f666c8148f
This commit is contained in:
parent
8b7bd668a0
commit
37a6150ab4
@ -359,6 +359,9 @@ MessageChannel::Connected() const
|
||||
bool
|
||||
MessageChannel::CanSend() const
|
||||
{
|
||||
if (!mMonitor) {
|
||||
return false;
|
||||
}
|
||||
MonitorAutoLock lock(*mMonitor);
|
||||
return Connected();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user