Re-order timeout for update and restart BLE endpoints
This commit is contained in:
parent
44d2ba7a50
commit
a8907a059d
4
index.js
4
index.js
|
@ -545,12 +545,12 @@ function bReset (obj, cb) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function bUpdate (obj, cb) {
|
function bUpdate (obj, cb) {
|
||||||
|
exec('sh ./scripts/update.sh', (err, stdio, stderr) => {
|
||||||
cb()
|
cb()
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
exec('sh ./scripts/update.sh', (err, stdio, stderr) => {
|
|
||||||
process.exit(0)
|
process.exit(0)
|
||||||
})
|
|
||||||
}, 20)
|
}, 20)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
function bRestart (obj, cb) {
|
function bRestart (obj, cb) {
|
||||||
cb()
|
cb()
|
||||||
|
|
Loading…
Reference in New Issue