aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/jabber
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-06-24 16:14:16 +0300
committerGravatar Vitaly Takmazov2016-06-24 16:14:16 +0300
commitf1b9807af10d45fee99042af88e21e1b4dc161a2 (patch)
tree48916a0b7ddc95c44205658c941896dc611cb860 /src/main/java/com/juick/jabber
parent59a5a48135033832e52cb48c64ce81e5dc795fa4 (diff)
update deps
Diffstat (limited to 'src/main/java/com/juick/jabber')
-rw-r--r--src/main/java/com/juick/jabber/ws/Main.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/com/juick/jabber/ws/Main.java b/src/main/java/com/juick/jabber/ws/Main.java
index 6f5ed96a..6a397fff 100644
--- a/src/main/java/com/juick/jabber/ws/Main.java
+++ b/src/main/java/com/juick/jabber/ws/Main.java
@@ -21,8 +21,7 @@ import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.datasource.DriverManagerDataSource;
import java.io.FileInputStream;
-import java.util.ArrayList;
-import java.util.Properties;
+import java.util.*;
import java.util.logging.Level;
import java.util.logging.LogManager;
import java.util.logging.Logger;
@@ -38,7 +37,7 @@ public class Main {
JdbcTemplate sql;
XMPPConnection xmpp;
public static String STATSFILE = null;
- public final static ArrayList<SocketSubscribed> clients = new ArrayList<SocketSubscribed>();
+ public final static List<SocketSubscribed> clients = Collections.synchronizedList(new ArrayList<SocketSubscribed>());
public static void main(String[] args) {
new Main().start();