mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-26 13:49:32 +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);
|
procedure TCustomWSServer.CloseConnectionSocket(aConnection: TWSServerConnection; var aContinue: boolean);
|
||||||
begin
|
begin
|
||||||
aConnection.ServerTransport.CloseSocket;
|
if aConnection.ServerTransport<>nil then
|
||||||
|
aConnection.ServerTransport.CloseSocket;
|
||||||
aContinue:=True;
|
aContinue:=True;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user