Browse Source

Allow duplicate connections on TESTNET (for local testing)

PascalCoin 6 years ago
parent
commit
8a947c998f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/core/UNetProtocol.pas

+ 2 - 0
src/core/UNetProtocol.pas

@@ -1425,6 +1425,7 @@ 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
@@ -1434,6 +1435,7 @@ begin
   finally
     FNetConnections.UnlockList;
   end;
+  {$ENDIF}
   Result := Nil;
 end;