mirror of
https://github.com/matrix-construct/construct
synced 2025-03-16 22:41:46 +01:00
modules/federation/federation: Minor assertion; prevent trouble with ctx::exception_handler.
This commit is contained in:
parent
8cc01dfc4d
commit
672dc48d1d
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue