Commit aac0abf4 authored by Joseph Noir's avatar Joseph Noir

Ensure a newb unsubs from events on exit messages

parent 76f572dc
......@@ -327,7 +327,8 @@ struct newb : public extend<scheduled_actor, newb<Message>>::template
bool cleanup(error&& reason, execution_unit* host) override {
CAF_LOG_TRACE(CAF_ARG(reason));
// TODO: Ask policies, close socket.
// TODO: Should policies be notified here?
stop();
return local_actor::cleanup(std::move(reason), host);
}
......
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