Merge "Make sure the PAC script content is sent again" am: 6c942b9dc9 am: 8224136fc3

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1711211

Change-Id: I3fc9182277fb8abcaf08d14c5526904155f6e95f
This commit is contained in:
Aaron Huang
2021-05-31 11:07:54 +00:00
committed by Automerger Merge Worker

View File

@@ -345,7 +345,14 @@ public class PacProxyService extends IPacProxyManager.Stub {
if (mProxyService == null) {
Log.e(TAG, "No proxy service");
} else {
mNetThreadHandler.post(mPacDownloader);
// If mCurrentPac is not null, then the PacService might have
// crashed and restarted. The download task will not actually
// call setCurrentProxyScript, so call setCurrentProxyScript here.
if (mCurrentPac != null) {
setCurrentProxyScript(mCurrentPac);
} else {
mNetThreadHandler.post(mPacDownloader);
}
}
}
}