0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 07:54:05 +01:00

ircd::server: Fix error; fix regression.

This commit is contained in:
Jason Volk 2018-02-06 18:37:26 -08:00
parent f925c9e5df
commit 24fdfdd9fe
2 changed files with 4 additions and 4 deletions

View file

@ -35,7 +35,7 @@ struct ircd::server::tag
http::code status {(http::code)0};
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_value(args&&...);

View file

@ -1033,7 +1033,7 @@ catch(const std::exception &e)
{
if(node)
{
node->handle_error(*this, std::make_exception_ptr(std::current_exception()));
node->handle_error(*this, std::current_exception());
return;
}
@ -1177,7 +1177,7 @@ catch(const std::exception &e)
{
if(node)
{
node->handle_error(*this, std::make_exception_ptr(std::current_exception()));
node->handle_error(*this, std::current_exception());
return;
}
@ -2108,7 +2108,7 @@ ircd::server::tag::set_exception(args&&... a)
}
void
ircd::server::tag::set_exception(std::exception_ptr &&eptr)
ircd::server::tag::set_exception(std::exception_ptr eptr)
{
if(abandoned())
return;