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

Commit 0daf9d06 authored by Hung-ying Tyan's avatar Hung-ying Tyan
Browse files

Fix a bug in getSocketError() in VpnService.

parent a2a29b0c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -466,7 +466,7 @@ abstract class VpnService<E extends VpnProfile> implements Serializable {
            for (DaemonProxy s : mDaemonList) {
            for (DaemonProxy s : mDaemonList) {
                switch (getResultFromSocket(s)) {
                switch (getResultFromSocket(s)) {
                    case 0:
                    case 0:
                        return 0;
                        continue;


                    case AUTH_ERROR_CODE:
                    case AUTH_ERROR_CODE:
                        return VpnManager.VPN_ERROR_AUTH;
                        return VpnManager.VPN_ERROR_AUTH;