Browse Source

TFPCustomHTTPClient: do not reconnect when terminated

Ondrej Pokorny 4 years ago
parent
commit
40c359a551
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-web/src/base/fphttpclient.pp

+ 1 - 1
packages/fcl-web/src/base/fphttpclient.pp

@@ -1387,7 +1387,7 @@ begin
           T:=False;
         end;
       end;
-      If Not T Then
+      If Not T and Not Terminated Then
         ReconnectToServer(CHost,CPort,AIsHttps);
     Finally
       // On terminate, we close the request