Skip to content
Snippets Groups Projects
Commit 61e979e6 authored by Andrey Kleshchev's avatar Andrey Kleshchev
Browse files

SL-12491 semwait_signal crash

Superficially it looks like mac tried to resume ms_sleep after class got destroyed by regular cleanup.
parent 3e72ded0
No related branches found
No related tags found
No related merge requests found
......@@ -1516,8 +1516,10 @@ bool LLAppViewer::doFrame()
}
// yield cooperatively when not running as foreground window
if ( (gViewerWindow && !gViewerWindow->getWindow()->getVisible())
|| !gFocusMgr.getAppHasFocus())
// and when not quiting (causes trouble at mac's cleanup stage)
if (!LLApp::isExiting()
&& ((gViewerWindow && !gViewerWindow->getWindow()->getVisible())
|| !gFocusMgr.getAppHasFocus()))
{
// Sleep if we're not rendering, or the window is minimized.
static LLCachedControl<S32> s_bacground_yeild_time(gSavedSettings, "BackgroundYieldTime", 40);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment