Re-order timeout for update and restart BLE endpoints
This commit is contained in:
parent
44d2ba7a50
commit
a8907a059d
10
index.js
10
index.js
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue