소스 검색

TFPCustomHTTPClient: do not reconnect when terminated

Ondrej Pokorny 4 년 전
부모
커밋
40c359a551
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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