mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-02 18:09:34 +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);
|
Stream:=SockToStream(NewSocket);
|
||||||
DoConnect(Stream);
|
DoConnect(Stream);
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
begin
|
||||||
|
CloseSocket(NewSocket);
|
||||||
|
NewSocket:=-1;
|
||||||
|
end;
|
||||||
end
|
end
|
||||||
except
|
except
|
||||||
On E : ESocketError do
|
On E : ESocketError do
|
||||||
|
Loading…
Reference in New Issue
Block a user