commit | 264bef96c82961029702fcf8e12b0fddfa0d09ab | [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 | 658a2f8a9f071a8154007b56291d2f6fe53b3f07 | |
parent | 5646c5243f3900011f6d855914f59c205a65c9ce [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