wait for cleanup callback, then reboot

10.3.x-maintenance
cTn 2014-09-16 21:18:14 +02:00
parent bfb6e17187
commit 57b4e3cafa
1 changed files with 3 additions and 2 deletions

View File

@ -164,9 +164,10 @@ TABS.initial_setup.initialize = function (callback) {
function reboot() {
GUI.log(chrome.i18n.getMessage('initialSetupEepromSaved'));
GUI.tab_switch_cleanup();
MSP.send_message(MSP_codes.MSP_SET_REBOOT, false, false, reinitialize);
GUI.tab_switch_cleanup(function() {
MSP.send_message(MSP_codes.MSP_SET_REBOOT, false, false, reinitialize);
});
}
function reinitialize() {