platform_system_core/adb/client
Josh Gao 7dd382ded9 adb: improve race between device_connected and device_disconnected.
If a device is unplugged while it's being processed, we can be inside
register_usb_transport still when we call unregister_usb_transport,
leading to bad things happening. Move the call of
register_usb_transport into the scope guarded by usb_handles_mutex.

Bug: http://b/62200735
Test: manual
Change-Id: I2517dcb9d30d9a08cebbb5f715ae3fd30c510109
2017-06-07 11:06:53 -07:00
..
main.cpp adb: redirect stdout/stderr before initializing usb. 2017-05-18 13:38:50 -07:00
usb_dispatch.cpp adb: fix darwin build break. 2017-05-10 13:58:51 -07:00
usb_libusb.cpp adb: improve race between device_connected and device_disconnected. 2017-06-07 11:06:53 -07:00
usb_linux.cpp adb: fix darwin build break. 2017-05-10 13:58:51 -07:00
usb_osx.cpp adb: fix darwin build break. 2017-05-10 13:58:51 -07:00
usb_windows.cpp adb: move all cleanup to a function with defined ordering. 2017-05-09 14:32:47 -07:00