mirror of
https://github.com/Doodle3D/doodle3d-client.git
synced 2024-11-22 01:07:56 +01:00
Fixed inappropriate network mode switching #90
This commit is contained in:
parent
6cac5fc6f5
commit
4ef164fb17
@ -350,14 +350,14 @@ function NetworkPanel() {
|
|||||||
// save network related settings and on complete, connect to network
|
// save network related settings and on complete, connect to network
|
||||||
_self.saveSettings(_self.readForm(),function(validated) {
|
_self.saveSettings(_self.readForm(),function(validated) {
|
||||||
if(!validated) return;
|
if(!validated) return;
|
||||||
|
setClientModeState(CLIENT_MODE_STATE.CONNECTING,"");
|
||||||
_api.associate(_selectedNetwork,_passwordField.val(),true);
|
_api.associate(_selectedNetwork,_passwordField.val(),true);
|
||||||
});
|
|
||||||
setClientModeState(CLIENT_MODE_STATE.CONNECTING,"");
|
|
||||||
|
|
||||||
// after switching wifi network or creating a access point we delay the status retrieval
|
// after switching wifi network or creating a access point we delay the status retrieval
|
||||||
// because the webserver needs time to switch
|
// because the webserver needs time to switch it's status
|
||||||
clearTimeout(_retrieveNetworkStatusDelay);
|
clearTimeout(_retrieveNetworkStatusDelay);
|
||||||
_retrieveNetworkStatusDelay = setTimeout(function() { _self.retrieveNetworkStatus(true); }, _retrieveNetworkStatusDelayTime);
|
_retrieveNetworkStatusDelay = setTimeout(function() { _self.retrieveNetworkStatus(true); }, _retrieveNetworkStatusDelayTime);
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
this.createAP = function() {
|
this.createAP = function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user