From 74ed4fbde86ab4aaa5e3480d66b510b771c7bd1e Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Thu, 10 Apr 2008 22:31:10 +0200 Subject: [PATCH] release usb-device on close --- usb-driver.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usb-driver.c b/usb-driver.c index 942cdc1..1162d51 100644 --- a/usb-driver.c +++ b/usb-driver.c @@ -858,8 +858,10 @@ int close(int fd) { if (fd == windrvrfd && windrvrfd >= 0) { DPRINTF("close windrvrfd\n"); - if (usb_devhandle) + if (usb_devhandle) { + usb_claim(0); usb_close(usb_devhandle); + } usb_devhandle = NULL; usbinterface = -1; -- 2.39.5