Bug 817983 - Disconnect first so that we force ourselves to actually try again. r=vchang

This commit is contained in:
Blake Kaplan 2012-12-06 13:27:14 -08:00
parent 0b00ddf594
commit a0bfd7a1cb

View File

@ -1941,7 +1941,11 @@ function WifiWorker() {
self._lastConnectionInfo = null;
self._fireEvent("onconnect", { network: netToDOM(self.currentNetwork) });
} else {
WifiManager.reassociate(function(){});
// NB: We have to call disconnect first. Otherwise, we only reauth with
// the existing AP and don't retrigger DHCP.
WifiManager.disconnect(function() {
WifiManager.reassociate(function(){});
});
}
};