mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 991499 - WifiWorker still try to send message to component which is already shutdown. r=vchang
This commit is contained in:
parent
133ebdb593
commit
42c0a798a4
@ -2437,8 +2437,12 @@ WifiWorker.prototype = {
|
||||
},
|
||||
|
||||
_sendMessage: function(message, success, data, msg) {
|
||||
msg.manager.sendAsyncMessage(message + (success ? ":OK" : ":NO"),
|
||||
{ data: data, rid: msg.rid, mid: msg.mid });
|
||||
try {
|
||||
msg.manager.sendAsyncMessage(message + (success ? ":OK" : ":NO"),
|
||||
{ data: data, rid: msg.rid, mid: msg.mid });
|
||||
} catch (e) {
|
||||
debug("sendAsyncMessage error : " + e);
|
||||
}
|
||||
this._splicePendingRequest(msg);
|
||||
},
|
||||
|
||||
@ -2481,7 +2485,11 @@ WifiWorker.prototype = {
|
||||
if ((i = this._domManagers.indexOf(msg.manager)) != -1) {
|
||||
this._domManagers.splice(i, 1);
|
||||
}
|
||||
|
||||
for (i = this._domRequest.length - 1; i >= 0; i--) {
|
||||
if (this._domRequest[i].msg.manager === msg.manager) {
|
||||
this._domRequest.splice(i, 1);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user