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

Commit 51900639 authored by Jason Monk's avatar Jason Monk Committed by Android (Google) Code Review
Browse files

Merge "Synchronize on all sendProxyBroadcast calls" into lmp-dev

parents ae309489 cf0f97a3
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -403,7 +403,7 @@ public class ConnectivityService extends IConnectivityManager.Stub {
    private ArrayList mInetLog;

    // track the current default http proxy - tell the world if we get a new one (real change)
    private ProxyInfo mDefaultProxy = null;
    private volatile ProxyInfo mDefaultProxy = null;
    private Object mProxyLock = new Object();
    private boolean mDefaultProxyDisabled = false;

@@ -2537,13 +2537,13 @@ public class ConnectivityService extends IConnectivityManager.Stub {
            } finally {
                Binder.restoreCallingIdentity(token);
            }
        }

            if (mGlobalProxy == null) {
                proxyProperties = mDefaultProxy;
            }
            sendProxyBroadcast(proxyProperties);
        }
    }

    private void loadGlobalProxy() {
        ContentResolver res = mContext.getContentResolver();