Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 75c0928c authored by Android (Google) Code Review's avatar Android (Google) Code Review Committed by Android Git Automerger
Browse files

am 8ece3445: Merge change 8061 into donut

Merge commit '8ece3445'

* commit '8ece3445':
  Throw a connecting exception when timed out.
parents 4eb5479b 8ece3445
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -161,6 +161,7 @@ abstract class VpnService<E extends VpnProfile> {

    synchronized void onDisconnect(boolean cleanUpServices) {
        try {
            Log.d(TAG, "       disconnecting VPN...");
            mState = VpnState.DISCONNECTING;
            broadcastConnectivity(VpnState.DISCONNECTING);
            mNotification.showDisconnect();
@@ -217,6 +218,8 @@ abstract class VpnService<E extends VpnProfile> {
                synchronized (VpnService.this) {
                    if (mState == VpnState.CONNECTING) {
                        Log.d(TAG, "       connecting timed out !!");
                        mError = newConnectingError(
                                new IOException("Connecting timed out"));
                        onError();
                    }
                }