0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-01-13 08:23:56 +01:00

ircd::server: Copy the eptr so it doesn't get robbed on forwarding constructions.

This commit is contained in:
Jason Volk 2019-04-16 19:04:23 -07:00
parent adc2d9d66f
commit 903a6e7f57
2 changed files with 3 additions and 3 deletions

View file

@ -129,6 +129,6 @@ struct ircd::server::peer::err
std::exception_ptr eptr;
system_point etime;
err(std::exception_ptr);
err(const std::exception_ptr &);
~err() noexcept;
};

View file

@ -1585,8 +1585,8 @@ const
// peer::err
//
ircd::server::peer::err::err(std::exception_ptr eptr)
:eptr{std::move(eptr)}
ircd::server::peer::err::err(const std::exception_ptr &eptr)
:eptr{eptr}
,etime{now<system_point>()}
{
}