summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jason Monk <jmonk@google.com> 2014-10-02 22:47:20 +0000
committer Android Git Automerger <android-git-automerger@android.com> 2014-10-02 22:47:20 +0000
commit3c0d53ae64f998006839c3c8331e080f9de785a0 (patch)
tree80016b880a20feab182cdaef325520a3d7483a04
parent6f2d610f4d8ed33bf2ec4eb23a4285018e1ae028 (diff)
parentd212662a19017a18bbd81585e6479296ffe0d52e (diff)
am d212662a: am 51900639: Merge "Synchronize on all sendProxyBroadcast calls" into lmp-dev
* commit 'd212662a19017a18bbd81585e6479296ffe0d52e': Synchronize on all sendProxyBroadcast calls
-rw-r--r--services/core/java/com/android/server/ConnectivityService.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/services/core/java/com/android/server/ConnectivityService.java b/services/core/java/com/android/server/ConnectivityService.java
index a9cff22c5937..3dbbf23339df 100644
--- a/services/core/java/com/android/server/ConnectivityService.java
+++ b/services/core/java/com/android/server/ConnectivityService.java
@@ -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,12 +2537,12 @@ public class ConnectivityService extends IConnectivityManager.Stub {
} finally {
Binder.restoreCallingIdentity(token);
}
- }
- if (mGlobalProxy == null) {
- proxyProperties = mDefaultProxy;
+ if (mGlobalProxy == null) {
+ proxyProperties = mDefaultProxy;
+ }
+ sendProxyBroadcast(proxyProperties);
}
- sendProxyBroadcast(proxyProperties);
}
private void loadGlobalProxy() {