We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87516c8 commit 34944d5Copy full SHA for 34944d5
AndroidSDKCore/src/main/java/com/leanplum/Var.java
@@ -350,7 +350,7 @@ private void cacheComputedValues() {
350
/**
351
* Updates variable with values from server.
352
*/
353
- public void update() {
+ public synchronized void update() {
354
// TODO: Clean up memory for resource variables.
355
//data = null;
356
AndroidSDKCore/src/main/java/com/leanplum/callbacks/VariableCallback.java
@@ -36,7 +36,9 @@ public void setVariable(Var<T> variable) {
36
}
37
38
public void run() {
39
- this.handle(variable);
+ synchronized (variable) {
40
+ this.handle(variable);
41
+ }
42
43
44
public abstract void handle(Var<T> variable);
0 commit comments