From fe4bda42faecdcdfab4baf7f6e66d53c1536d660 Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Sat, 25 Sep 2021 13:10:35 +0200 Subject: [PATCH] Added ACCEPTED response to registration in accept all mode. --- .../java/nl/andrewl/concord_server/client/ClientManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/main/java/nl/andrewl/concord_server/client/ClientManager.java b/server/src/main/java/nl/andrewl/concord_server/client/ClientManager.java index 10565cb..cf4bb37 100644 --- a/server/src/main/java/nl/andrewl/concord_server/client/ClientManager.java +++ b/server/src/main/java/nl/andrewl/concord_server/client/ClientManager.java @@ -50,6 +50,7 @@ public class ClientManager { if (userDoc != null) throw new InvalidIdentificationException("Username is taken."); if (this.server.getConfig().isAcceptAllNewClients()) { var clientData = this.authService.registerNewClient(registration); + clientThread.sendToClient(new RegistrationStatus(RegistrationStatus.Type.ACCEPTED)); this.initializeClientConnection(clientData, clientThread); } else { var clientId = this.authService.registerPendingClient(registration);