2
0
Эх сурвалжийг харах

TFPCustomHTTPClient: do not reconnect when terminated

Ondrej Pokorny 4 жил өмнө
parent
commit
40c359a551

+ 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