We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2781813 commit d1bb3f3Copy full SHA for d1bb3f3
src/generic-ble.js
@@ -240,6 +240,9 @@ export default function(RED) {
240
this.operations = {
241
preparePeripheral: () => {
242
let peripheral = noble._peripherals[this.uuid];
243
+ if (!peripheral) {
244
+ return Promise.resolve();
245
+ }
246
switch (peripheral.state) {
247
case 'disconnected': {
248
this.emit('disconnected');
0 commit comments