Commit 3d0e736e authored by Dominik Charousset's avatar Dominik Charousset

fixed behavior_stack cleanup in event-based actors

parent e33b6fa3
...@@ -55,6 +55,7 @@ resume_result event_based_actor::resume(util::fiber*) { ...@@ -55,6 +55,7 @@ resume_result event_based_actor::resume(util::fiber*) {
auto done_cb = [&]() { auto done_cb = [&]() {
m_state.store(abstract_scheduled_actor::done); m_state.store(abstract_scheduled_actor::done);
m_bhvr_stack.clear(); m_bhvr_stack.clear();
m_bhvr_stack.cleanup();
on_exit(); on_exit();
}; };
try { try {
...@@ -113,7 +114,6 @@ void event_based_actor::quit(std::uint32_t reason) { ...@@ -113,7 +114,6 @@ void event_based_actor::quit(std::uint32_t reason) {
if (reason == exit_reason::normal) { if (reason == exit_reason::normal) {
cleanup(exit_reason::normal); cleanup(exit_reason::normal);
m_bhvr_stack.clear(); m_bhvr_stack.clear();
m_bhvr_stack.cleanup();
} }
else { else {
abstract_scheduled_actor::quit(reason); abstract_scheduled_actor::quit(reason);
......
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