mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-05 12:47:27 +01:00
* partial patch from #12040. One of the problems was already fixed earlier.
git-svn-id: trunk@13499 -
This commit is contained in:
parent
2ee5b728ba
commit
c79a31fabf
@ -333,6 +333,7 @@ Var
|
||||
|
||||
begin
|
||||
FAccepting := True;
|
||||
NoConnections := 0;
|
||||
Listen;
|
||||
Repeat
|
||||
Repeat
|
||||
@ -341,7 +342,7 @@ begin
|
||||
If NewSocket>=0 then
|
||||
begin
|
||||
Inc (NoConnections);
|
||||
If DoConnectQuery(NewSocket) Then
|
||||
If FAccepting and DoConnectQuery(NewSocket) Then
|
||||
begin
|
||||
Stream:=SockToStream(NewSocket);
|
||||
DoConnect(Stream);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user