Commit c65b7d5a authored by Dominik Charousset's avatar Dominik Charousset

Fix actor companion

parent c24bddb5
......@@ -42,7 +42,7 @@ void actor_companion::enqueue(const actor_addr& sender, message_id mid,
message_pointer ptr{memory::create<mailbox_element>(sender, mid,
std::move(content))};
shared_lock<lock_type> guard(m_lock);
if (!m_on_enqueue) {
if (m_on_enqueue) {
m_on_enqueue(std::move(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