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:
parent
adc2d9d66f
commit
903a6e7f57
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -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>()}
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue