commit | 60b8c26520922f296a36efb17b8914b6f1e115ea | [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 | 8b65c52d6775fc8df80297dc1256390b6ea0c7f8 | |
parent | 664a618c069b52d2e03d287d164dfdacd6038489 [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