Browse Source

Revert "Allow duplicate connections on TESTNET (for local testing)"

This reverts commit 8a947c998fb7d91285f340df4ebba132325c25aa.
PascalCoin 6 years ago
parent
commit
80154eac6a
1 changed files with 0 additions and 2 deletions
  1. 0 2
      src/core/UNetProtocol.pas

+ 0 - 2
src/core/UNetProtocol.pas

@@ -1425,7 +1425,6 @@ function TNetData.FindConnectionByClientRandomValue(Sender: TNetConnection): TNe
 Var l : TList<TNetConnection>;
   i : Integer;
 begin
-  {$IFNDEF TESTNET}
   l := FNetConnections.LockList;
   try
     for i := 0 to L.Count - 1 do begin
@@ -1435,7 +1434,6 @@ begin
   finally
     FNetConnections.UnlockList;
   end;
-  {$ENDIF}
   Result := Nil;
 end;