0
0
Fork 0
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:
Jason Volk 2018-05-19 17:43:02 -07:00
parent 52de335c8f
commit e395e4d85e

View file

@ -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);
}