diff options
author | snowleo <schneeleo@gmail.com> | 2012-08-04 10:48:56 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2012-08-04 10:48:56 +0200 |
commit | bf93bb2026e1d3474be88759e72b144e218387db (patch) | |
tree | 1de997645499c96ec4e369c71f8f08254ac737bd /EssentialsXMPP/src/com/earth2me/essentials/xmpp/UserManager.java | |
parent | af73c11638fda0c65fa68506d301b2a68b780bf6 (diff) | |
download | Essentials-bf93bb2026e1d3474be88759e72b144e218387db.tar Essentials-bf93bb2026e1d3474be88759e72b144e218387db.tar.gz Essentials-bf93bb2026e1d3474be88759e72b144e218387db.tar.lz Essentials-bf93bb2026e1d3474be88759e72b144e218387db.tar.xz Essentials-bf93bb2026e1d3474be88759e72b144e218387db.zip |
Thread safety for XMPP
Diffstat (limited to 'EssentialsXMPP/src/com/earth2me/essentials/xmpp/UserManager.java')
-rw-r--r-- | EssentialsXMPP/src/com/earth2me/essentials/xmpp/UserManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/EssentialsXMPP/src/com/earth2me/essentials/xmpp/UserManager.java b/EssentialsXMPP/src/com/earth2me/essentials/xmpp/UserManager.java index a35312129..6439c9b9d 100644 --- a/EssentialsXMPP/src/com/earth2me/essentials/xmpp/UserManager.java +++ b/EssentialsXMPP/src/com/earth2me/essentials/xmpp/UserManager.java @@ -9,7 +9,7 @@ import java.util.*; public class UserManager implements IConf { private final transient EssentialsConf users; - private final transient List<String> spyusers = new ArrayList<String>(); + private final transient List<String> spyusers = Collections.synchronizedList(new ArrayList<String>()); private final static String ADDRESS = "address"; private final static String SPY = "spy"; |