diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/com/juick/jabber/ws/Main.java | 5 |
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(); |