Bluetooth sequence logic was waiting for a callback that never came...

This commit is contained in:
mmcwilliams 2018-01-01 00:52:29 -05:00
parent 0b5e4c47d3
commit 68dab59e6b
1 changed files with 4 additions and 5 deletions

View File

@ -457,11 +457,10 @@ function bSequence (obj, cb) {
}
}
if (intval._state.sequence && sequence._state.active) {
return sequence.setStop(() => {
sequence.setStop()
intval._state.sequence = false
log.info('sequence stop', { method : 'ble', id : seq_id })
return cb()
})
} else {
console.time('sequence time')
intval._state.sequence = true