mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-10 05:47:04 +00:00
Bug 972794 - [Tarako]Connect wpa supplicant consume 5 seconds. r=chulee
This commit is contained in:
parent
b30ae4158c
commit
2f1ea2e635
@ -554,14 +554,14 @@ var WifiManager = (function() {
|
||||
didConnectSupplicant(function(){});
|
||||
return;
|
||||
}
|
||||
if (connectTries++ < 3) {
|
||||
// Try again in 5 seconds.
|
||||
if (connectTries++ < 5) {
|
||||
// Try again in 1 seconds.
|
||||
if (!retryTimer)
|
||||
retryTimer = Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer);
|
||||
|
||||
retryTimer.initWithCallback(function(timer) {
|
||||
wifiCommand.connectToSupplicant(connectCallback);
|
||||
}, 5000, Ci.nsITimer.TYPE_ONE_SHOT);
|
||||
}, 1000, Ci.nsITimer.TYPE_ONE_SHOT);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user