Commit 99c3b1aa authored by Dominik Charousset's avatar Dominik Charousset

Always check return value of `try_block`

parent 41784b43
...@@ -499,8 +499,9 @@ void local_actor::launch(execution_unit* eu, bool lazy, bool hide) { ...@@ -499,8 +499,9 @@ void local_actor::launch(execution_unit* eu, bool lazy, bool hide) {
} }
// actor is cooperatively scheduled // actor is cooperatively scheduled
attach_to_scheduler(); attach_to_scheduler();
if (lazy) { // do not schedule immediately when spawned with `lazy_init`
mailbox().try_block(); // mailbox could be set to blocked
if (lazy && mailbox().try_block()) {
return; return;
} }
if (eu) { if (eu) {
......
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