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

SL-13811 Crash on coroprocedure

Coroprosedure should stop on 'stop' exception
parent acfbb41f
No related branches found
No related tags found
No related merge requests found
...@@ -415,6 +415,14 @@ void LLCoprocedurePool::coprocedureInvokerCoro( ...@@ -415,6 +415,14 @@ void LLCoprocedurePool::coprocedureInvokerCoro(
{ {
coproc->mProc(httpAdapter, coproc->mId); coproc->mProc(httpAdapter, coproc->mId);
} }
catch (const LLCoros::Stop &)
{
LL_INFOS("CoProcMgr") << "Viewer is shutting Down. Stopping coprocedure('" << coproc->mName
<< "', id=" << coproc->mId.asString()
<< ") in pool '" << mPoolName << "'" << LL_ENDL;
mActiveCoprocs.erase(itActive);
throw; // let toplevel handle this as LLContinueError
}
catch (...) catch (...)
{ {
LOG_UNHANDLED_EXCEPTION(STRINGIZE("Coprocedure('" << coproc->mName LOG_UNHANDLED_EXCEPTION(STRINGIZE("Coprocedure('" << coproc->mName
......
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