оптимизации
This commit is contained in:
@@ -189,8 +189,9 @@ var
|
||||
ssl: TIdSSLIOHandlerSocketOpenSSL;
|
||||
begin
|
||||
Result := '';
|
||||
http := TIdHTTP.Create(nil);
|
||||
|
||||
try
|
||||
http := TIdHTTP.Create(nil);
|
||||
ssl := TIdSSLIOHandlerSocketOpenSSL.Create(nil);
|
||||
try
|
||||
http.IOHandler := ssl;
|
||||
@@ -200,6 +201,7 @@ begin
|
||||
Result := http.Get('https://api.betterttv.net/3/cached/' + aMethod);
|
||||
finally
|
||||
ssl.Free;
|
||||
http.Free;
|
||||
end;
|
||||
except
|
||||
on E: Exception do
|
||||
@@ -208,7 +210,7 @@ begin
|
||||
Result := '';
|
||||
end;
|
||||
end;
|
||||
http.Free;
|
||||
|
||||
end;
|
||||
|
||||
procedure TBTTV.toLog(alevel: integer; amethod, amessage: string);
|
||||
|
||||
Reference in New Issue
Block a user