diff options
author | Wesley Wolfe <weswolf@aol.com> | 2012-06-11 01:00:35 -0500 |
---|---|---|
committer | Wesley Wolfe <weswolf@aol.com> | 2012-06-11 01:00:35 -0500 |
commit | 0f23a4fe23601389257ef3d87b51422bdf89fb78 (patch) | |
tree | 6031457a35385275b17e6de291c517a9c637854e /src/main/java/net/minecraft/server | |
parent | 0942b1861b82e1e1c83f97ce3d0bfeaa04f15a91 (diff) | |
download | craftbukkit-0f23a4fe23601389257ef3d87b51422bdf89fb78.tar craftbukkit-0f23a4fe23601389257ef3d87b51422bdf89fb78.tar.gz craftbukkit-0f23a4fe23601389257ef3d87b51422bdf89fb78.tar.lz craftbukkit-0f23a4fe23601389257ef3d87b51422bdf89fb78.tar.xz craftbukkit-0f23a4fe23601389257ef3d87b51422bdf89fb78.zip |
Synchronize handler lists
Diffstat (limited to 'src/main/java/net/minecraft/server')
-rw-r--r-- | src/main/java/net/minecraft/server/NetworkListenThread.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/main/java/net/minecraft/server/NetworkListenThread.java b/src/main/java/net/minecraft/server/NetworkListenThread.java index 50ad6c9a..cddac3b3 100644 --- a/src/main/java/net/minecraft/server/NetworkListenThread.java +++ b/src/main/java/net/minecraft/server/NetworkListenThread.java @@ -7,7 +7,12 @@ import java.util.ArrayList; import java.util.HashMap; import java.util.logging.Level; import java.util.logging.Logger; -import java.io.IOException; // CraftBukkit + +// CraftBukkit start +import java.io.IOException; +import java.util.List; +import java.util.Collections; +// CraftBukkit end public class NetworkListenThread { @@ -16,8 +21,8 @@ public class NetworkListenThread { private Thread e; public volatile boolean b = false; private int f = 0; - private ArrayList g = new ArrayList(); - private ArrayList h = new ArrayList(); + private List g = Collections.synchronizedList(new ArrayList()); // CraftBukkit - Synchronized + private List h = Collections.synchronizedList(new ArrayList()); // CraftBukkit - Synchronized public MinecraftServer c; private HashMap i = new HashMap(); |