mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 00:32:35 +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)
|
||||
{
|
||||
if(request.tag)
|
||||
request.tag->set_exception(std::current_exception());
|
||||
else
|
||||
if(!request.tag)
|
||||
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,
|
||||
|
|
Loading…
Reference in a new issue