import java.util.Collections;
import java.util.List;
import net.marfgamer.raknet.client.RakNetClient;
public class DiscoveryThread extends Thread {
private List<RakNetClient> clients;
<BUG>private boolean running;
</BUG>
public DiscoveryThread() {
<BUG>this.clients = Collections.synchronizedList(new ArrayList<RakNetClient>());
}</BUG>
public void addClient(RakNetClient client) {

import java.util.Collections;
import java.util.List;
import net.marfgamer.raknet.client.RakNetClient;
public class DiscoveryThread extends Thread {
private List<RakNetClient> clients;
private volatile boolean running;
public DiscoveryThread() {
this.clients = Collections.synchronizedList(new ArrayList<RakNetClient>());
}
public RakNetClient[] getClients() {
return clients.toArray(new RakNetClient[clients.size()]);
}
public void addClient(RakNetClient client) {
