Commit 7b895416 authored by Joseph Noir's avatar Joseph Noir

Fix newb stop function

parent dd2bab79
......@@ -178,6 +178,8 @@ struct newb : public network::newb_base {
void stop() override {
CAF_PUSH_AID_FROM_PTR(this);
CAF_LOG_TRACE("");
stop_reading();
stop_writing();
graceful_shutdown();
}
......@@ -501,6 +503,8 @@ struct newb_acceptor : network::newb_base {
void stop() override {
CAF_PUSH_AID_FROM_PTR(this);
CAF_LOG_TRACE("");
stop_reading();
stop_writing();
graceful_shutdown();
}
......
......@@ -239,6 +239,8 @@ CAF_TEST(spawn acceptor) {
exec_all();
scoped_actor self{sys};
self->send(n, quit_atom::value);
exec_all();
}
CAF_TEST(spawn newb) {
......
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