🐛 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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user