Merge branch 'master' into libusb_wrappers_tests

This commit is contained in:
Sebastian Zagrodzki
2017-03-10 07:01:29 -05:00

View File

@@ -92,7 +92,7 @@ func (c *Context) OpenDeviceWithVidPid(vid, pid int) (*Device, error) {
}
func (c *Context) Close() error {
close(c.done)
c.done <- struct{}{}
if c.ctx != nil {
libusb.exit(c.ctx)
}