am 51900639: Merge "Synchronize on all sendProxyBroadcast calls" into lmp-dev
* commit '519006395204ba3eab77ae420d20eb70ebb78af5': Synchronize on all sendProxyBroadcast calls
This commit is contained in:
@@ -403,7 +403,7 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
|||||||
private ArrayList mInetLog;
|
private ArrayList mInetLog;
|
||||||
|
|
||||||
// track the current default http proxy - tell the world if we get a new one (real change)
|
// 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 Object mProxyLock = new Object();
|
||||||
private boolean mDefaultProxyDisabled = false;
|
private boolean mDefaultProxyDisabled = false;
|
||||||
|
|
||||||
@@ -2537,12 +2537,12 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
|||||||
} finally {
|
} finally {
|
||||||
Binder.restoreCallingIdentity(token);
|
Binder.restoreCallingIdentity(token);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (mGlobalProxy == null) {
|
if (mGlobalProxy == null) {
|
||||||
proxyProperties = mDefaultProxy;
|
proxyProperties = mDefaultProxy;
|
||||||
|
}
|
||||||
|
sendProxyBroadcast(proxyProperties);
|
||||||
}
|
}
|
||||||
sendProxyBroadcast(proxyProperties);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void loadGlobalProxy() {
|
private void loadGlobalProxy() {
|
||||||
|
|||||||
Reference in New Issue
Block a user