Bug 1645071 - remove await from non-blocking listener. r=robwu

Differential Revision: https://phabricator.services.mozilla.com/D95125
This commit is contained in:
Brenda Moreira 2020-11-13 15:10:36 +00:00
parent 5fac6c2b9b
commit 25256faaa4

View File

@ -1060,7 +1060,7 @@ HttpObserverManager = {
}
if (kind === "onBeforeSendHeaders" && this.listeners.onSendHeaders.size) {
await this.runChannelListener(channel, "onSendHeaders");
this.runChannelListener(channel, "onSendHeaders");
} else if (kind !== "onErrorOccurred") {
channel.errorCheck();
}