0
0
mirror of https://github.com/Doodle3D/doodle3d-client.git synced 2024-11-24 18:17:56 +01:00

Fixed inappropriate network mode switching #90

This commit is contained in:
peteruithoven 2014-02-04 14:36:10 +01:00
parent 6cac5fc6f5
commit 4ef164fb17

View File

@ -350,14 +350,14 @@ function NetworkPanel() {
// save network related settings and on complete, connect to network
_self.saveSettings(_self.readForm(),function(validated) {
if(!validated) return;
_api.associate(_selectedNetwork,_passwordField.val(),true);
});
setClientModeState(CLIENT_MODE_STATE.CONNECTING,"");
_api.associate(_selectedNetwork,_passwordField.val(),true);
// 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);
_retrieveNetworkStatusDelay = setTimeout(function() { _self.retrieveNetworkStatus(true); }, _retrieveNetworkStatusDelayTime);
});
};
this.createAP = function() {