chrvadala / node-ble

Bluetooth Low Energy (BLE) library written with pure Node.js (no bindings) - baked by Bluez via DBus
https://www.npmjs.com/package/node-ble
MIT License
315 stars 46 forks source link

fix(adapter.waitDevice): cancel timers on exception #15

Closed crazySocket closed 3 years ago

crazySocket commented 3 years ago

My end-to-end tests use node-ble. When bluetooth device is not found, my tests finish but program hangs. I used package why-is-node-running to track down problem to adapter.waitDevice.

coveralls commented 3 years ago

Coverage Status

Coverage increased (+0.01%) to 95.793% when pulling aa43478ffaa96a3ed7d74a42862a18fc4cc7f67f on crazySocket:master into 99bbf701c94b4d93018ff33cb046dc4ba82007db on chrvadala:master.