summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Monk <jmonk@google.com>2013-10-15 11:15:00 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-10-15 11:15:01 +0000
commitc09e59110272d2613763a54a57e7da7c9f87f369 (patch)
tree6b1c0dd7088a78c459a1a729b431a993e6ce5297
parent94c0057d67c2e0a4b88a4f735388639210260d0e (diff)
parent90760c8fa36574d6cc9224046758317ca6f640bf (diff)
downloadframeworks_base-c09e59110272d2613763a54a57e7da7c9f87f369.zip
frameworks_base-c09e59110272d2613763a54a57e7da7c9f87f369.tar.gz
frameworks_base-c09e59110272d2613763a54a57e7da7c9f87f369.tar.bz2
Merge "Fix error when PAC set rapidly" into klp-dev
-rw-r--r--services/java/com/android/server/connectivity/PacManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/java/com/android/server/connectivity/PacManager.java b/services/java/com/android/server/connectivity/PacManager.java
index 837fb05..7786fe6 100644
--- a/services/java/com/android/server/connectivity/PacManager.java
+++ b/services/java/com/android/server/connectivity/PacManager.java
@@ -162,7 +162,7 @@ public class PacManager {
*/
public synchronized boolean setCurrentProxyScriptUrl(ProxyProperties proxy) {
if (!TextUtils.isEmpty(proxy.getPacFileUrl())) {
- if (proxy.getPacFileUrl().equals(mPacUrl)) {
+ if (proxy.getPacFileUrl().equals(mPacUrl) && (proxy.getPort() > 0)) {
// Allow to send broadcast, nothing to do.
return false;
}