mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 00:32:35 +01:00
ircd:Ⓜ️ Fix hook deletion while iterating set.
This commit is contained in:
parent
52de335c8f
commit
e395e4d85e
1 changed files with 5 additions and 0 deletions
|
@ -3194,6 +3194,11 @@ ircd::m::hook<>::site::site(const json::members &members)
|
|||
ircd::m::hook<>::site::~site()
|
||||
noexcept
|
||||
{
|
||||
const std::vector<hook *> hooks
|
||||
{
|
||||
begin(this->hooks), end(this->hooks)
|
||||
};
|
||||
|
||||
for(auto *const hook : hooks)
|
||||
del(*hook);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue