mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-21 01:52:50 +02:00
* close socket if not accepted. Patch from Mantis 12675 by S. Meyer.
git-svn-id: trunk@13128 -
This commit is contained in:
parent
b77bff2996
commit
828afdf74c
@ -346,6 +346,11 @@ begin
|
||||
Stream:=SockToStream(NewSocket);
|
||||
DoConnect(Stream);
|
||||
end
|
||||
else
|
||||
begin
|
||||
CloseSocket(NewSocket);
|
||||
NewSocket:=-1;
|
||||
end;
|
||||
end
|
||||
except
|
||||
On E : ESocketError do
|
||||
|
Loading…
Reference in New Issue
Block a user