🐛 Skip unauthenticated sockets in region update notifications

Region change notifications dereferenced the account of every
socket, crashing on connections that had not logged in.
This commit is contained in:
2026-11-15 22:08:32 +01:00
parent b3a3b090b4
commit 0d1c61364b
+1 -1
View File
@@ -279,7 +279,7 @@ begin
while CEDServerInstance.TCPServer.IterNext do
begin
netState := TNetState(CEDServerInstance.TCPServer.Iterator.UserData);
if netState <> nil then
if (netState <> nil) and (netState.Account <> nil) then
begin
account := netState.Account;
i := 0;