Skip to content

Commit ac5a48f

Browse files
author
dbaba
committed
Suppress DoesNotExist error
1 parent b75a4ed commit ac5a48f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/noble/lib/bluez/bindings.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -582,9 +582,11 @@ class BluezBindings extends EventEmitter {
582582
try {
583583
await this.hciAdapter.RemoveDevice(objectPath);
584584
} catch (err) {
585-
debug(
586-
`[${peripheralUuid}]<PropertiesChanged> Error while removing the device: ${err.message}, ${err.type}`
587-
);
585+
if (err.type !== 'org.bluez.Error.DoesNotExist') {
586+
debug(
587+
`[${peripheralUuid}]<PropertiesChanged> Error while removing the device: ${err.message}, ${err.type}`
588+
);
589+
}
588590
}
589591
}
590592
}

0 commit comments

Comments
 (0)