mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 17:47:56 +02:00
fcl-web: fixed crash in websocket server on windows when closing when already disconnected
This commit is contained in:
parent
b150480c60
commit
eb17e6fd2d
@ -586,7 +586,8 @@ end;
|
||||
|
||||
procedure TCustomWSServer.CloseConnectionSocket(aConnection: TWSServerConnection; var aContinue: boolean);
|
||||
begin
|
||||
aConnection.ServerTransport.CloseSocket;
|
||||
if aConnection.ServerTransport<>nil then
|
||||
aConnection.ServerTransport.CloseSocket;
|
||||
aContinue:=True;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user