commit | 8bb766e7ace361fca9fd9db73434c8c1f9b225ea | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Mon Jun 05 15:08:13 2017 -0700 |
committer | Josh Gao <jmgao@google.com> | Mon Jun 05 15:11:53 2017 -0700 |
tree | 520f6dde75e371ed788ffa5c13a91353cc65da2d | |
parent | 772d8352714597b993cecc336fa6592ef5de47b2 [diff] |
adb: libusb: don't try to delete a usb_handle twice. Previously, we would attempt to delete a usb_handle in both device_disconnected and usb_close. If the one in device_disconnected happened to happen first, usb_close would abort when it failed to find the handle it was supposed to own. Bug: http://b/62020217 Test: unplugging device on darwin Change-Id: I6c6bf61bf89a4d9a23458c00b457080d3d6cc744