usb 2.10.0 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/package.json +1 -1
- package/prebuilds/android-arm/node.napi.armv7.node +0 -0
- package/prebuilds/android-arm64/node.napi.armv8.node +0 -0
- package/prebuilds/darwin-x64+arm64/node.napi.node +0 -0
- package/prebuilds/linux-arm/node.napi.armv6.node +0 -0
- package/prebuilds/linux-arm/node.napi.armv7.node +0 -0
- package/prebuilds/linux-arm64/node.napi.armv8.node +0 -0
- package/prebuilds/linux-ia32/node.napi.node +0 -0
- package/prebuilds/linux-x64/node.napi.glibc.node +0 -0
- package/prebuilds/linux-x64/node.napi.musl.node +0 -0
- package/prebuilds/win32-ia32/node.napi.node +0 -0
- package/prebuilds/win32-x64/node.napi.node +0 -0
- package/src/device.cc +5 -3
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/device.cc
CHANGED
|
@@ -203,9 +203,11 @@ Napi::Value Device::Open(const Napi::CallbackInfo& info) {
|
|
|
203
203
|
Napi::Value Device::Close(const Napi::CallbackInfo& info) {
|
|
204
204
|
ENTER_METHOD(Device, 0);
|
|
205
205
|
if (self->canClose()){
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
206
|
+
if (self->device_handle){
|
|
207
|
+
libusb_close(self->device_handle);
|
|
208
|
+
self->device_handle = NULL;
|
|
209
|
+
completionQueue.stop();
|
|
210
|
+
}
|
|
209
211
|
}else{
|
|
210
212
|
THROW_ERROR("Can't close device with a pending request");
|
|
211
213
|
}
|