mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +01:00
ircd:Ⓜ️:homeserver: Move module unload to same unit as load.
This commit is contained in:
parent
820ad6b57b
commit
b07f8d633e
2 changed files with 3 additions and 2 deletions
|
@ -267,6 +267,9 @@ noexcept
|
||||||
signoff(*this);
|
signoff(*this);
|
||||||
vm.reset();
|
vm.reset();
|
||||||
|
|
||||||
|
if(primary == this)
|
||||||
|
mods::imports.erase("net_dns_cache"s);
|
||||||
|
|
||||||
while(!modules.empty())
|
while(!modules.empty())
|
||||||
modules.pop_back();
|
modules.pop_back();
|
||||||
}
|
}
|
||||||
|
|
|
@ -226,8 +226,6 @@ noexcept try
|
||||||
|
|
||||||
_fetch.reset(nullptr);
|
_fetch.reset(nullptr);
|
||||||
|
|
||||||
mods::imports.erase("net_dns_cache"s);
|
|
||||||
|
|
||||||
//TODO: remove this for non-interfering shutdown
|
//TODO: remove this for non-interfering shutdown
|
||||||
//server::interrupt_all();
|
//server::interrupt_all();
|
||||||
//client::terminate_all();
|
//client::terminate_all();
|
||||||
|
|
Loading…
Reference in a new issue