summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jason Monk <jmonk@google.com> 2014-10-31 14:15:34 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2014-10-31 14:15:36 +0000
commite6cd9daff42dc512e7abfceaf6a38b60dbe3ef97 (patch)
tree1f099158b064df0e671351b94055c84a67514ff7
parent88cfb428d4e9ad4a45d829795d5bdce3a0d4c62c (diff)
parent4bf1d218576fa5721bab589cd5945dbe49f0d117 (diff)
Merge "Download PAC when set after a diff PAC URL" into lmp-mr1-dev
-rw-r--r--services/core/java/com/android/server/connectivity/PacManager.java9
1 files changed, 2 insertions, 7 deletions
diff --git a/services/core/java/com/android/server/connectivity/PacManager.java b/services/core/java/com/android/server/connectivity/PacManager.java
index 07fe7ba79582..7d1da01b8ca6 100644
--- a/services/core/java/com/android/server/connectivity/PacManager.java
+++ b/services/core/java/com/android/server/connectivity/PacManager.java
@@ -265,14 +265,9 @@ public class PacManager {
}
Intent intent = new Intent();
intent.setClassName(PAC_PACKAGE, PAC_SERVICE);
- // Already bound no need to bind again.
if ((mProxyConnection != null) && (mConnection != null)) {
- if (mLastPort != -1) {
- sendPacBroadcast(new ProxyInfo(mPacUrl, mLastPort));
- } else {
- Log.e(TAG, "Received invalid port from Local Proxy,"
- + " PAC will not be operational");
- }
+ // Already bound no need to bind again, just download the new file.
+ IoThread.getHandler().post(mPacDownloader);
return;
}
mConnection = new ServiceConnection() {