Re-order timeout for update and restart BLE endpoints

This commit is contained in:
mmcwilliams 2018-02-12 14:22:31 -05:00
parent 44d2ba7a50
commit a8907a059d
1 changed files with 5 additions and 5 deletions

View File

@ -545,12 +545,12 @@ function bReset (obj, cb) {
}
function bUpdate (obj, cb) {
cb()
setTimeout(() => {
exec('sh ./scripts/update.sh', (err, stdio, stderr) => {
exec('sh ./scripts/update.sh', (err, stdio, stderr) => {
cb()
setTimeout(() => {
process.exit(0)
})
}, 20)
}, 20)
})
}
function bRestart (obj, cb) {
cb()