commit | 8db64b797ad35e1f7887fb4055f437526c2a8ec2 | [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 | c398ad0d4bfcb3cd70b02e091eda850946d7b166 | |
parent | 4f17c53d913d6afc996b970b53c00f55977e8a30 [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