File tree Expand file tree Collapse file tree
services/core/java/com/android/server Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -403,7 +403,7 @@ public class ConnectivityService extends IConnectivityManager.Stub {
403403 private ArrayList mInetLog ;
404404
405405 // track the current default http proxy - tell the world if we get a new one (real change)
406- private ProxyInfo mDefaultProxy = null ;
406+ private volatile ProxyInfo mDefaultProxy = null ;
407407 private Object mProxyLock = new Object ();
408408 private boolean mDefaultProxyDisabled = false ;
409409
@@ -2537,12 +2537,12 @@ public void setGlobalProxy(ProxyInfo proxyProperties) {
25372537 } finally {
25382538 Binder .restoreCallingIdentity (token );
25392539 }
2540- }
25412540
2542- if (mGlobalProxy == null ) {
2543- proxyProperties = mDefaultProxy ;
2541+ if (mGlobalProxy == null ) {
2542+ proxyProperties = mDefaultProxy ;
2543+ }
2544+ sendProxyBroadcast (proxyProperties );
25442545 }
2545- sendProxyBroadcast (proxyProperties );
25462546 }
25472547
25482548 private void loadGlobalProxy () {
You can’t perform that action at this time.
0 commit comments