Make EhConfig thread safe
This commit is contained in:
1 parent
9a5f6ccb74
commit
ec2cc5b13a
1 file changed
+2
-2
@@ -618,7 +618,7 @@ public class EhConfig implements Cloneable {
|
||||
}
|
||||
}
|
||||
|
||||
public void setDirty() {
|
||||
public synchronized void setDirty() {
|
||||
mDirty = true;
|
||||
}
|
||||
|
||||
@@ -650,7 +650,7 @@ public class EhConfig implements Cloneable {
|
||||
KEY_MULTI_PAGE_THUMB + "_" + multiPageThumb;
|
||||
}
|
||||
|
||||
public String uconfig() {
|
||||
public synchronized String uconfig() {
|
||||
if (mDirty) {
|
||||
mDirty = false;
|
||||
updateUconfig();
|
||||
|
||||
Reference in new issue
Block a user