From 68dab59e6ba2bd259edce19d189ebb25c4b78869 Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Mon, 1 Jan 2018 00:52:29 -0500 Subject: [PATCH] Bluetooth sequence logic was waiting for a callback that never came... --- index.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index 0c05c12..7221ced 100644 --- a/index.js +++ b/index.js @@ -457,11 +457,10 @@ function bSequence (obj, cb) { } } if (intval._state.sequence && sequence._state.active) { - return sequence.setStop(() => { - intval._state.sequence = false - log.info('sequence stop', { method : 'ble', id : seq_id }) - return cb() - }) + 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