diff --git a/src/main/java/ChatServer.java b/src/main/java/ChatServer.java index dc94664..fdf1007 100644 --- a/src/main/java/ChatServer.java +++ b/src/main/java/ChatServer.java @@ -19,6 +19,7 @@ public class ChatServer { while(true) { Socket connectionToClient = serverSocket.accept(); ClientHandler client = new ClientHandler(this, connectionToClient); + clients.add(client); System.out.println("Accepted new Client"); } } catch (IOException e) {