Commit ffc85f06 authored by Dominik Charousset's avatar Dominik Charousset

Properly clear the registry on shutdown

parent d25d4f99
......@@ -148,7 +148,14 @@ void actor_registry::start() {
}
void actor_registry::stop() {
// nop
{
exclusive_guard guard{instances_mtx_};
entries_.clear();
}
{
exclusive_guard guard{named_entries_mtx_};
named_entries_.clear();
}
}
} // namespace caf
......@@ -384,8 +384,6 @@ actor_system::~actor_system() {
};
drop(spawn_serv_);
drop(config_serv_);
registry_.erase("SpawnServ");
registry_.erase("ConfigServ");
// group module is the first one, relies on MM
groups_.stop();
// stop modules in reverse order
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment