Commit 265db806 authored by Dominik Charousset's avatar Dominik Charousset

Fix potential segfault in private_thread

parent d0b0d2d6
......@@ -91,8 +91,8 @@ void private_thread::exec(private_thread* this_ptr) {
// detached actor is destroyed and this object is unreachable
this_ptr->await_self_destroyed();
// signalize destruction of detached thread to registry
this_ptr->system_.dec_detached_threads();
this_ptr->system_.thread_terminates();
this_ptr->system_.dec_detached_threads();
// done
delete this_ptr;
}
......
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