Skip to content

Commit

Permalink
Should fix nullpointers while modifying queue
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgeiss0702 committed Oct 21, 2023
1 parent 3b1ef0c commit d22b308
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -17,6 +17,7 @@

import java.util.*;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.TimeUnit;

public class QueueServerImpl implements QueueServer {
Expand All @@ -27,7 +28,7 @@ public class QueueServerImpl implements QueueServer {

private final List<AdaptedServer> servers;

private final List<QueuePlayer> queue = new ArrayList<>();
private final List<QueuePlayer> queue = new CopyOnWriteArrayList<>();

private List<Integer> supportedProtocols = new ArrayList<>();

Expand Down

0 comments on commit d22b308

Please sign in to comment.