git-svn-id: trunk@13499 -
@@ -333,6 +333,7 @@ Var
begin
FAccepting := True;
+ NoConnections := 0;
Listen;
Repeat
@@ -341,7 +342,7 @@ begin
If NewSocket>=0 then
Inc (NoConnections);
- If DoConnectQuery(NewSocket) Then
+ If FAccepting and DoConnectQuery(NewSocket) Then
Stream:=SockToStream(NewSocket);
DoConnect(Stream);