Commit 1b62271d authored by Joseph Noir's avatar Joseph Noir

Fix servant startup after moving to a new broker

parent 3c2a2f88
...@@ -276,7 +276,7 @@ void abstract_broker::move_datagram_servant(datagram_servant_ptr ptr) { ...@@ -276,7 +276,7 @@ void abstract_broker::move_datagram_servant(datagram_servant_ptr ptr) {
CAF_ASSERT(ptr != nullptr); CAF_ASSERT(ptr != nullptr);
CAF_ASSERT(ptr->parent() != nullptr && ptr->parent() != this); CAF_ASSERT(ptr->parent() != nullptr && ptr->parent() != this);
ptr->set_parent(this); ptr->set_parent(this);
launch_servant(ptr); ptr->add_to_loop();
CAF_ASSERT(ptr->parent() == this); CAF_ASSERT(ptr->parent() == this);
auto hdls = ptr->hdls(); auto hdls = ptr->hdls();
for (auto& hdl : hdls) for (auto& hdl : hdls)
......
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