0
0
Fork 0
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:
Jason Volk 2018-04-07 10:30:02 -07:00
parent da6a39812f
commit 331d0a955d

View file

@ -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,