Commit 90d6f23d authored by Dominik Charousset's avatar Dominik Charousset

Fix UB in local_actor::resume

parent 9d66698a
...@@ -650,7 +650,7 @@ resumable::resume_result local_actor::resume(execution_unit* eu, ...@@ -650,7 +650,7 @@ resumable::resume_result local_actor::resume(execution_unit* eu,
} }
int handled_msgs = 0; int handled_msgs = 0;
auto reset_timeout_if_needed = [&] { auto reset_timeout_if_needed = [&] {
if (handled_msgs > 0) { if (handled_msgs > 0 && has_behavior()) {
request_timeout(get_behavior().timeout()); request_timeout(get_behavior().timeout());
} }
}; };
......
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