SL-16125 Crash in sslVerify on shutdown

meow-7.2.2
Andrey Kleshchev 2021-10-04 21:26:05 +03:00
parent 4799395492
commit 9a10719250
1 changed files with 5 additions and 0 deletions

View File

@ -546,6 +546,11 @@ void LLAppCoreHttp::refreshSettings(bool initial)
LLCore::HttpStatus LLAppCoreHttp::sslVerify(const std::string &url,
const LLCore::HttpHandler::ptr_t &handler, void *appdata)
{
if (gDisconnected)
{
return LLCore::HttpStatus(LLCore::HttpStatus::EXT_CURL_EASY, CURLE_OPERATION_TIMEDOUT);
}
LLCore::HttpStatus result;
try
{