Update state to failed if the VPN fails to connect.

Without this, the VPN settings dialog stays in "Connecting..."
forever.

Bug: 17140195
Change-Id: I4771be464384b62114839523fb2a6b36aa6520ee
This commit is contained in:
Lorenzo Colitti
2014-08-20 16:01:44 -07:00
parent da3475dba7
commit 438406092e

View File

@@ -1263,6 +1263,7 @@ public class Vpn {
}
} catch (Exception e) {
Log.i(TAG, "Aborting", e);
updateState(DetailedState.FAILED, e.getMessage());
exit();
} finally {
// Kill the daemons if they fail to stop.