Explorar o código

TFPCustomHTTPClient: do not reconnect when terminated

Ondrej Pokorny %!s(int64=4) %!d(string=hai) anos
pai
achega
40c359a551
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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