core: Move calculate_timeout call to add_to_flying_transfers
authorHans de Goede <hdegoede@redhat.com>
Wed, 8 Jun 2016 08:34:05 +0000 (10:34 +0200)
committerNathan Hjelm <hjelmn@me.com>
Wed, 17 Aug 2016 18:52:40 +0000 (12:52 -0600)
commit9542c38cf2cbd911bd7e3ec161e564b3ae63d4fe
tree7d7d248d467519e9e07278fa3d3af98c7f77b139
parentce59e6ea12852f25025fef5ef42da9e271049a59
core: Move calculate_timeout call to add_to_flying_transfers

This cleans-up libusb_submit_transfer a bit by avoiding an error
exit path with unlock calls.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
libusb/io.c