diff options
| author | Andrey Lihatskiy <alihatskiy@productengine.com> | 2020-08-05 09:59:41 +0300 | 
|---|---|---|
| committer | Andrey Lihatskiy <alihatskiy@productengine.com> | 2020-08-05 09:59:41 +0300 | 
| commit | 07c7506b1b503e734ce16c8a7dca0408b018ebd6 (patch) | |
| tree | 998270242e6e40bf6b5dfd364eadd8f86a352282 | |
| parent | af7ff3d99f71dfc52fabebf77c985c73f4eb172d (diff) | |
| parent | e8422ec9d74e06ca7d2405a89d0e50adab1a36b0 (diff) | |
Merge branch 'DRTVWR-476' into DRTVWR-501-maint
| -rw-r--r-- | indra/newview/llappviewer.cpp | 11 | ||||
| -rw-r--r-- | indra/newview/llstartup.cpp | 20 | ||||
| -rw-r--r-- | indra/newview/llviewerassetstorage.cpp | 13 | ||||
| -rw-r--r-- | indra/newview/llviewerassetstorage.h | 2 | 
4 files changed, 25 insertions, 21 deletions
| diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index d9cc026c52..cf9ad7ccbf 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -3101,8 +3101,15 @@ LLSD LLAppViewer::getViewerInfo() const  	// return a URL to the release notes for this viewer, such as:  	// https://releasenotes.secondlife.com/viewer/2.1.0.123456.html -	std::string url = versionInfo.getReleaseNotes(); -	info["VIEWER_RELEASE_NOTES_URL"] = url.empty()? LLTrans::getString("RetrievingData") : url; +	std::string url = versionInfo.getReleaseNotes(); // VVM supplied +    if (url.empty()) +    { +        url = LLTrans::getString("RELEASE_NOTES_BASE_URL"); +        if (!LLStringUtil::endsWith(url, "/")) +            url += "/"; +        url += LLURI::escape(versionInfo.getVersion()) + ".html"; +    } +	info["VIEWER_RELEASE_NOTES_URL"] = url;  	// Position  	LLViewerRegion* region = gAgent.getRegion(); diff --git a/indra/newview/llstartup.cpp b/indra/newview/llstartup.cpp index 3cd0932d9c..6d20dcf188 100644 --- a/indra/newview/llstartup.cpp +++ b/indra/newview/llstartup.cpp @@ -2304,29 +2304,13 @@ void login_callback(S32 option, void *userdata)  void show_release_notes_if_required()  {      static bool release_notes_shown = false; -    // We happen to know that instantiating LLVersionInfo implicitly -    // instantiates the LLEventMailDrop named "relnotes", which we (might) use -    // below. If viewer release notes stop working, might be because that -    // LLEventMailDrop got moved out of LLVersionInfo and hasn't yet been -    // instantiated.      if (!release_notes_shown && (LLVersionInfo::instance().getChannelAndVersion() != gLastRunVersion)          && LLVersionInfo::instance().getViewerMaturity() != LLVersionInfo::TEST_VIEWER // don't show Release Notes for the test builds          && gSavedSettings.getBOOL("UpdaterShowReleaseNotes")          && !gSavedSettings.getBOOL("FirstLoginThisInstall"))      { -        // Instantiate a "relnotes" listener which assumes any arriving event -        // is the release notes URL string. Since "relnotes" is an -        // LLEventMailDrop, this listener will be invoked whether or not the -        // URL has already been posted. If so, it will fire immediately; -        // otherwise it will fire whenever the URL is (later) posted. Either -        // way, it will display the release notes as soon as the URL becomes -        // available. -        LLEventPumps::instance().obtain("relnotes").listen( -            "showrelnotes", -            [](const LLSD& url){ -                LLWeb::loadURLInternal(url.asString()); -                return false; -            }); +        LLSD info(LLAppViewer::instance()->getViewerInfo()); +        LLWeb::loadURLInternal(info["VIEWER_RELEASE_NOTES_URL"]);          release_notes_shown = true;      }  } diff --git a/indra/newview/llviewerassetstorage.cpp b/indra/newview/llviewerassetstorage.cpp index c1cee2ffef..3c61ce15f1 100644 --- a/indra/newview/llviewerassetstorage.cpp +++ b/indra/newview/llviewerassetstorage.cpp @@ -49,6 +49,8 @@  /// LLViewerAssetRequest  ///---------------------------------------------------------------------------- +static const std::string VIEWER_ASSET_STORAGE_CORO_POOL = "VAssetStorage"; +  /**   * @brief Local class to encapsulate asset fetch requests with a timestamp.   * @@ -127,6 +129,15 @@ LLViewerAssetStorage::LLViewerAssetStorage(LLMessageSystem *msg, LLXferManager *  {  } +LLViewerAssetStorage::~LLViewerAssetStorage() +{ +    if (!LLCoprocedureManager::wasDeleted()) +    { +        // This class has dedicated coroutine pool, clean it up, otherwise coroutines will crash later.  +        LLCoprocedureManager::instance().close(VIEWER_ASSET_STORAGE_CORO_POOL); +    } +} +  // virtual   void LLViewerAssetStorage::storeAssetData(      const LLTransactionID& tid, @@ -399,7 +410,7 @@ void LLViewerAssetStorage::queueRequestHttp(          bool is_temp = false;          LLViewerAssetStatsFF::record_enqueue(atype, with_http, is_temp); -        LLCoprocedureManager::instance().enqueueCoprocedure("AssetStorage","LLViewerAssetStorage::assetRequestCoro", +        LLCoprocedureManager::instance().enqueueCoprocedure(VIEWER_ASSET_STORAGE_CORO_POOL,"LLViewerAssetStorage::assetRequestCoro",              boost::bind(&LLViewerAssetStorage::assetRequestCoro, this, req, uuid, atype, callback, user_data));      }  } diff --git a/indra/newview/llviewerassetstorage.h b/indra/newview/llviewerassetstorage.h index cefe215431..ef01d179b7 100644 --- a/indra/newview/llviewerassetstorage.h +++ b/indra/newview/llviewerassetstorage.h @@ -43,6 +43,8 @@ public:  	LLViewerAssetStorage(LLMessageSystem *msg, LLXferManager *xfer,  				   LLVFS *vfs, LLVFS *static_vfs); +	~LLViewerAssetStorage(); +  	virtual void storeAssetData(  		const LLTransactionID& tid,  		LLAssetType::EType atype, | 
