commit | 17f4e4a0276a246926f5b151099dbdb92e5d80d7 | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Fri Jun 23 01:21:25 2017 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Fri Jun 23 01:41:47 2017 +0900 |
tree | f4cd7e0742eab39a94870903a7a0d3c9a08e54c9 | |
parent | 62d5e744c3ab298b278834b0d711702cbb0c4326 [diff] |
Don't crash if the interface disappears just after appearing. If the interface disappears between interfaceAdded() and setInterfaceUp, we'll crash with an IllegalStateException in NetworkManagementService#setInterfaceConfig. Ignore the error instead. This should be safe because we don't modify any state unless our calls succeed. Bug: 62870779 Test: builds aosp_bullhead-eng Change-Id: If8c2375f7fffe25a9fa79dc4f1981c745384a276