Bug 1554244 - Tolerate multiple calls to MessageChannel::Close. r=nika

Differential Revision: https://phabricator.services.mozilla.com/D34804

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Jed Davis 2019-06-13 15:40:58 +00:00
parent dec16f16c7
commit ded11c124c

View File

@ -2696,9 +2696,8 @@ void MessageChannel::Close() {
}
if (ChannelClosed == mChannelState) {
// XXX be strict about this until there's a compelling reason
// to relax
MOZ_CRASH("Close() called on closed channel!");
// Slightly unexpected but harmless; ignore. See bug 1554244.
return;
}
// Notify the other side that we're about to close our socket. If we've