Bug 902277 - Reset retry counter of WifiWorker after connect to supplicant. r=vchang

This commit is contained in:
kli@mozilla.com 2013-08-09 13:07:56 +08:00
parent 3c55662c8a
commit 74244ff7e9

View File

@ -843,6 +843,7 @@ var WifiManager = (function() {
if (ok === 0) {
// Tell the event worker to start waiting for events.
retryTimer = null;
connectTries = 0;
didConnectSupplicant(function(){});
return;
}
@ -858,6 +859,7 @@ var WifiManager = (function() {
}
retryTimer = null;
connectTries = 0;
notify("supplicantlost", { success: false });
}