From 464c170e2d7034b2ebdf714805e96c3eab11c1f6 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sun, 15 Nov 2026 14:46:49 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=92=20Skip=20unauthenticated=20sockets?= =?UTF-8?q?=20in=20admin=20broadcasts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Any connection that had not finished logging in has no account, and dereferencing it aborted the broadcast for all remaining admins. --- Server/UAdminHandling.pas | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Server/UAdminHandling.pas b/Server/UAdminHandling.pas index 553367b..32fad6f 100644 --- a/Server/UAdminHandling.pas +++ b/Server/UAdminHandling.pas @@ -98,7 +98,8 @@ begin while CEDServerInstance.TCPServer.IterNext do begin netState := TNetState(CEDServerInstance.TCPServer.Iterator.UserData); - if (netState <> nil) and (netState.Account.AccessLevel >= AAccessLevel) then + if (netState <> nil) and (netState.Account <> nil) and + (netState.Account.AccessLevel >= AAccessLevel) then CEDServerInstance.SendPacket(netState, APacket, False); end; APacket.Free;