Make sure the PAC script content is sent again
...when the PAC service crashes. Bug: 185409199 Test: manual Change-Id: Ic76428f42f37f8552a526190764ad32e2874adb0
This commit is contained in:
committed by
Aaron Huang
parent
0799624dc7
commit
eb9d9b261e
@@ -345,7 +345,14 @@ public class PacProxyService extends IPacProxyManager.Stub {
|
|||||||
if (mProxyService == null) {
|
if (mProxyService == null) {
|
||||||
Log.e(TAG, "No proxy service");
|
Log.e(TAG, "No proxy service");
|
||||||
} else {
|
} 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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user