🐛 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
|
while CEDServerInstance.TCPServer.IterNext do
|
||||||
begin
|
begin
|
||||||
netState := TNetState(CEDServerInstance.TCPServer.Iterator.UserData);
|
netState := TNetState(CEDServerInstance.TCPServer.Iterator.UserData);
|
||||||
if netState <> nil then
|
if (netState <> nil) and (netState.Account <> nil) then
|
||||||
begin
|
begin
|
||||||
account := netState.Account;
|
account := netState.Account;
|
||||||
i := 0;
|
i := 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user