mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1485660 - Avoid exceptions when the connection is closed in middle of the actor's id retrieval. r=jdescottes
MozReview-Commit-ID: KvwkISz7OVe Depends on D7456 Differential Revision: https://phabricator.services.mozilla.com/D7457 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
1fd7cbd0a7
commit
9c441aadb9
@ -1352,7 +1352,10 @@ Front.prototype = extend(Pool.prototype, {
|
||||
} else {
|
||||
this.actor().then(actorID => {
|
||||
packet.to = actorID;
|
||||
this.conn._transport.send(packet);
|
||||
// The connection might be closed during the promise resolution
|
||||
if (this.conn._transport) {
|
||||
this.conn._transport.send(packet);
|
||||
}
|
||||
}).catch(console.error);
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user