io: Clear transfer timeout struct when transfer has no timeout
authorChris Dickens <christopher.a.dickens@gmail.com>
Sat, 19 Aug 2017 00:30:38 +0000 (17:30 -0700)
committerChris Dickens <christopher.a.dickens@gmail.com>
Sat, 19 Aug 2017 01:21:19 +0000 (18:21 -0700)
commit2cefbc80f26170cdb8e1bbe14de9c08d6c41dafa
tree518574303a37272e40e1464d1c7d14c135fb1fe2
parent1fe3db79196fe0d08d87f65430b64a96f438e13a
io: Clear transfer timeout struct when transfer has no timeout

Prior to this commit, a transfer that was submitted with a non-zero
timeout would retain this timeout if the transfer was resubmitted with
a zero (unlimited) timeout. This commit corrects this by clearing the
transfer's timeout if the desired timeout is zero.

Closes #332

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb/io.c