0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-05-29 00:03:45 +02:00

modules/federation/federation: Minor assertion; prevent trouble with ctx::exception_handler.

This commit is contained in:
Jason Volk 2019-04-17 23:02:33 -07:00
parent 8cc01dfc4d
commit 672dc48d1d

View file

@ -303,6 +303,7 @@ ircd::m::feds::handler(const opts &opts,
next.get()
};
assert(it != end(reqs));
auto &req{*it}; try
{
const auto code{req.get()};
@ -314,7 +315,8 @@ ircd::m::feds::handler(const opts &opts,
catch(const std::exception &)
{
const ctx::exception_handler eptr;
if(!closure({req.origin, eptr}))
const std::exception_ptr &eptr_(eptr);
if(!closure({req.origin, eptr_}))
return false;
}