commit | ce5ce87a66addb5f6a1170a0e0958e63dd30d78c | [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 | 36b5dd845c075f6575fc3f527fe14af34888c56b [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