mirror of
https://github.com/matrix-construct/construct
synced 2024-12-28 00:14:07 +01:00
ircd::server: Fix error; fix regression.
This commit is contained in:
parent
f925c9e5df
commit
24fdfdd9fe
2 changed files with 4 additions and 4 deletions
|
@ -35,7 +35,7 @@ struct ircd::server::tag
|
||||||
http::code status {(http::code)0};
|
http::code status {(http::code)0};
|
||||||
std::unique_ptr<char[]> cancellation;
|
std::unique_ptr<char[]> cancellation;
|
||||||
|
|
||||||
void set_exception(std::exception_ptr &&);
|
void set_exception(std::exception_ptr);
|
||||||
template<class... args> void set_exception(args&&...);
|
template<class... args> void set_exception(args&&...);
|
||||||
template<class... args> void set_value(args&&...);
|
template<class... args> void set_value(args&&...);
|
||||||
|
|
||||||
|
|
|
@ -1033,7 +1033,7 @@ catch(const std::exception &e)
|
||||||
{
|
{
|
||||||
if(node)
|
if(node)
|
||||||
{
|
{
|
||||||
node->handle_error(*this, std::make_exception_ptr(std::current_exception()));
|
node->handle_error(*this, std::current_exception());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1177,7 +1177,7 @@ catch(const std::exception &e)
|
||||||
{
|
{
|
||||||
if(node)
|
if(node)
|
||||||
{
|
{
|
||||||
node->handle_error(*this, std::make_exception_ptr(std::current_exception()));
|
node->handle_error(*this, std::current_exception());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2108,7 +2108,7 @@ ircd::server::tag::set_exception(args&&... a)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
ircd::server::tag::set_exception(std::exception_ptr &&eptr)
|
ircd::server::tag::set_exception(std::exception_ptr eptr)
|
||||||
{
|
{
|
||||||
if(abandoned())
|
if(abandoned())
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue