Browse Source

ConnectionLock bug

Must break instead of Exit!
PascalCoin 6 years ago
parent
commit
0533d2fca6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/UNetProtocol.pas

+ 1 - 1
src/core/UNetProtocol.pas

@@ -1059,7 +1059,7 @@ begin
       if (TObject(l[i])=ObjectPointer) then begin
         if (Not (TNetConnection(l[i]).FDoFinalizeConnection)) And (TNetConnection(l[i]).Connected) then begin
           nc := TNetConnection(l[i]);
-          Exit;
+          Break;
         end else Exit;
       end;
     end;