mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 786283 - Report to the caller when a scan request fails. r=vchang
This commit is contained in:
parent
ecd7387454
commit
20ce728744
@ -1954,7 +1954,16 @@ WifiWorker.prototype = {
|
||||
this.waitForScan((function (networks) {
|
||||
this._sendMessage(message, networks !== null, networks, msg);
|
||||
}).bind(this));
|
||||
WifiManager.scan(true, function() {});
|
||||
|
||||
WifiManager.scan(true, function(ok) {
|
||||
// If the scan command succeeded, we're done.
|
||||
if (ok)
|
||||
return;
|
||||
|
||||
// Otherwise, let the client know that it failed, it's responsible for
|
||||
// trying again in a few seconds.
|
||||
this._sendMessage(message, false, "ScanFailed", msg);
|
||||
});
|
||||
},
|
||||
|
||||
_notifyAfterStateChange: function(success, newState) {
|
||||
|
Loading…
Reference in New Issue
Block a user