Archiviert
13
0

Synchronize handler lists

Dieser Commit ist enthalten in:
Wesley Wolfe 2012-06-11 01:00:35 -05:00
Ursprung 0942b1861b
Commit 0f23a4fe23

Datei anzeigen

@ -7,7 +7,12 @@ import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.logging.Level; import java.util.logging.Level;
import java.util.logging.Logger; 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 { public class NetworkListenThread {
@ -16,8 +21,8 @@ public class NetworkListenThread {
private Thread e; private Thread e;
public volatile boolean b = false; public volatile boolean b = false;
private int f = 0; private int f = 0;
private ArrayList g = new ArrayList(); private List g = Collections.synchronizedList(new ArrayList()); // CraftBukkit - Synchronized
private ArrayList h = new ArrayList(); private List h = Collections.synchronizedList(new ArrayList()); // CraftBukkit - Synchronized
public MinecraftServer c; public MinecraftServer c;
private HashMap i = new HashMap(); private HashMap i = new HashMap();