[core] Skip updating cache again when force update (#1127)

This commit is contained in:
LoveSy 2021-09-18 11:35:22 +08:00 committed by GitHub
parent ec0dac1683
commit fd2162bffa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -596,7 +596,9 @@ public class ConfigManager {
else else
count = 0; count = 0;
} }
if (count > 0) { // force update is because cache is already update to date
// skip caching again
if (!force && count > 0) {
// Called by oneway binder // Called by oneway binder
updateCaches(true); updateCaches(true);
return true; return true;