Add missing attach.

This commit is contained in:
Sebastian Zagrodzki
2017-02-13 03:17:29 +01:00
parent 931a15849b
commit e9d2ce49f0

View File

@@ -66,6 +66,7 @@ func (e *endpoint) transfer(buf []byte, timeout time.Duration) (int, error) {
if err != nil {
return 0, err
}
t.attach(e.Device.handle)
defer t.free()
if err := t.submit(); err != nil {