mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 780066 - Ensure that WifiManager's state is correct after shutting down. r=vchang DONTBUILD
This commit is contained in:
parent
824560525c
commit
dcf482c029
@ -1005,8 +1005,8 @@ var WifiManager = (function() {
|
||||
terminateSupplicant(function (ok) {
|
||||
manager.connectionDropped(function () {
|
||||
stopSupplicant(function (status) {
|
||||
manager.state = "UNINITIALIZED";
|
||||
closeSupplicantConnection(function () {
|
||||
manager.state = "UNINITIALIZED";
|
||||
disableInterface(manager.ifname, function (ok) {
|
||||
unloadDriver(callback);
|
||||
});
|
||||
@ -1420,6 +1420,7 @@ function WifiWorker() {
|
||||
}
|
||||
WifiManager.onsupplicantlost = function() {
|
||||
WifiManager.enabled = WifiManager.supplicantStarted = false;
|
||||
WifiManager.state = "UNINITIALIZED";
|
||||
debug("Supplicant died!");
|
||||
|
||||
// Check if we need to fire request replies first:
|
||||
@ -1431,7 +1432,9 @@ function WifiWorker() {
|
||||
}
|
||||
WifiManager.onsupplicantfailed = function() {
|
||||
WifiManager.enabled = WifiManager.supplicantStarted = false;
|
||||
WifiManager.state = "UNINITIALIZED";
|
||||
debug("Couldn't connect to supplicant");
|
||||
|
||||
if (self._stateRequests.length > 0)
|
||||
self._notifyAfterStateChange(false, false);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user