Commit d0b0d2d6 authored by Dominik Charousset's avatar Dominik Charousset

Fix potential segfault with thread callbacks

parent 35405ce6
...@@ -119,8 +119,8 @@ void blocking_actor::launch(execution_unit*, bool, bool hide) { ...@@ -119,8 +119,8 @@ void blocking_actor::launch(execution_unit*, bool, bool hide) {
self->on_exit(); self->on_exit();
# endif # endif
self->cleanup(std::move(rsn), self->context()); self->cleanup(std::move(rsn), self->context());
ptr->home_system->dec_detached_threads();
ptr->home_system->thread_terminates(); ptr->home_system->thread_terminates();
ptr->home_system->dec_detached_threads();
}, strong_actor_ptr{ctrl()}).detach(); }, strong_actor_ptr{ctrl()}).detach();
} }
......
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