mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Bug 817983 - Disconnect first so that we force ourselves to actually try again. r=vchang
This commit is contained in:
parent
0b00ddf594
commit
a0bfd7a1cb
@ -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(){});
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user