Be compatible with LibUSB from sourceforge and close the handle after reset

Submitted by:	Hans Petter Selasky
This commit is contained in:
Andrew Thompson 2009-03-10 14:29:34 +00:00
parent ffeeb9241a
commit 0b6e7271f0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=189621

View File

@ -816,7 +816,11 @@ usb_reset(usb_dev_handle * dev)
if (err)
return (-1);
return (0);
/*
* Be compatible with LibUSB from sourceforge and close the
* handle after reset!
*/
return (usb_close(dev));
}
const char *