Commit 2f8d8196 authored by Dominik Charousset's avatar Dominik Charousset Committed by Dominik Charousset

Properly clear the registry on shutdown

parent 76a31e23
...@@ -148,7 +148,14 @@ void actor_registry::start() { ...@@ -148,7 +148,14 @@ void actor_registry::start() {
} }
void actor_registry::stop() { void actor_registry::stop() {
// nop {
exclusive_guard guard{instances_mtx_};
entries_.clear();
}
{
exclusive_guard guard{named_entries_mtx_};
named_entries_.clear();
}
} }
} // namespace caf } // namespace caf
...@@ -384,8 +384,6 @@ actor_system::~actor_system() { ...@@ -384,8 +384,6 @@ actor_system::~actor_system() {
}; };
drop(spawn_serv_); drop(spawn_serv_);
drop(config_serv_); drop(config_serv_);
registry_.erase("SpawnServ");
registry_.erase("ConfigServ");
// group module is the first one, relies on MM // group module is the first one, relies on MM
groups_.stop(); groups_.stop();
// stop modules in reverse order // 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