1
0

release usb-device on close

This commit is contained in:
Michael Gernoth 2008-04-10 22:31:10 +02:00
parent adb51cf1e7
commit 74ed4fbde8

View File

@ -858,8 +858,10 @@ int close(int fd) {
if (fd == windrvrfd && windrvrfd >= 0) { if (fd == windrvrfd && windrvrfd >= 0) {
DPRINTF("close windrvrfd\n"); DPRINTF("close windrvrfd\n");
if (usb_devhandle) if (usb_devhandle) {
usb_claim(0);
usb_close(usb_devhandle); usb_close(usb_devhandle);
}
usb_devhandle = NULL; usb_devhandle = NULL;
usbinterface = -1; usbinterface = -1;