commit | 68f2c3831c5ddeed138d25ca17cf9b4603857ed3 | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Tue Dec 11 13:11:52 2018 -0800 |
committer | Josh Gao <jmgao@google.com> | Wed Dec 12 12:54:03 2018 -0800 |
tree | 83c7422ec2b87720bf338cc49bc9d2a24d35fbd3 | |
parent | c51b15b8999652fbfc3cd001b82385e4c514fd0c [diff] |
adb: remove incorrect use of RTTI. We were dynamic_casting to UsbConnection to check for USB connections, but the actual type was a BlockingConnectionAdapter wrapping a UsbConnection, with the result that unplugging an inaccessible (due to permissions) device on Linux wouldn't make the device go away. Test: manual Change-Id: Icb4acea5fd3c3baa9691698686213e122e898e4a