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) { function bUpdate (obj, cb) {
cb() exec('sh ./scripts/update.sh', (err, stdio, stderr) => {
setTimeout(() => { cb()
exec('sh ./scripts/update.sh', (err, stdio, stderr) => { setTimeout(() => {
process.exit(0) process.exit(0)
}) }, 20)
}, 20) })
} }
function bRestart (obj, cb) { function bRestart (obj, cb) {
cb() cb()