mirror of
https://github.com/matrix-construct/construct
synced 2024-12-01 19:22:53 +01:00
ircd::server: Yield in exception handler.
This commit is contained in:
parent
da6a39812f
commit
331d0a955d
1 changed files with 5 additions and 3 deletions
|
@ -476,10 +476,12 @@ try
|
||||||
}
|
}
|
||||||
catch(const std::exception &e)
|
catch(const std::exception &e)
|
||||||
{
|
{
|
||||||
if(request.tag)
|
if(!request.tag)
|
||||||
request.tag->set_exception(std::current_exception());
|
|
||||||
else
|
|
||||||
throw;
|
throw;
|
||||||
|
|
||||||
|
const auto eptr(std::current_exception());
|
||||||
|
const ctx::exception_handler eh;
|
||||||
|
request.tag->set_exception(eptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Dispatch algorithm here; finds the best link to place this request on,
|
/// Dispatch algorithm here; finds the best link to place this request on,
|
||||||
|
|
Loading…
Reference in a new issue