TFPCustomHTTPClient: do not reconnect when terminated

This commit is contained in:
Ondrej Pokorny 2021-08-16 17:42:01 +02:00 committed by Michael Van Canneyt
parent 2efaee6d85
commit 40c359a551

View File

@ -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