google chrome app - App still trying to receive after device is disconnected -


chrome.hid.receive(connectionid, myreceiver); chrome.hid.ondeviceremoved.addlistener(function () {         isdeviceconnected = false;         chrome.hid.disconnect(connectionid, function () { });          return;     }); 

extensions::lasterror:134 unchecked runtime.lasterror while running hid.receive: transfer failed.

how stop chrome app stop receiving if device disconnected?


Comments