Skip to content

Commit

Permalink
version 1.4.2 - synchronized queue
Browse files Browse the repository at this point in the history
  • Loading branch information
PNixx committed Oct 6, 2021
1 parent 5fc039a commit 9701b72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion personalizatio-sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
apply plugin: 'maven-publish'
apply plugin: 'signing'

version='1.4.1'
version='1.4.2'

android {
compileSdkVersion 30
Expand Down
4 changes: 3 additions & 1 deletion personalizatio-sdk/src/main/java/com/personalizatio/SDK.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
import org.json.JSONObject;

import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.TimeZone;
Expand Down Expand Up @@ -53,7 +55,7 @@ public class SDK {

private volatile boolean initialized = false;
private volatile int attempt = 0;
private ArrayList<Thread> queue = new ArrayList<>();
final private List<Thread> queue = Collections.synchronizedList(new ArrayList<>());
private Search search;
private final String segment;
private final String stream;
Expand Down

0 comments on commit 9701b72

Please sign in to comment.