diff options
m--------- | deps/com.juick.server | 10 | ||||
-rw-r--r-- | src/main/java/com/juick/jabber/ws/Main.java | 5 |
2 files changed, 7 insertions, 8 deletions
diff --git a/deps/com.juick.server b/deps/com.juick.server -Subproject 1ce6bc55817129159b1cda5076d039e9c3bc850 +Subproject c1fcf803adfe06a0a54b3e51c4fd2d67e6b732d 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(); |