aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2018-03-15 06:33:54 -0700
committerRaimo Niskanen <[email protected]>2018-03-15 06:42:57 -0700
commit6ea4eb3aedc011194135493948f141729e36a8c7 (patch)
tree7c0428f8d971e37cbd2bc8cca182809b76a692ea /lib
parenta113f6117fd696ea6f84ed754055b4ec97a7ccb2 (diff)
downloadotp-6ea4eb3aedc011194135493948f141729e36a8c7.tar.gz
otp-6ea4eb3aedc011194135493948f141729e36a8c7.tar.bz2
otp-6ea4eb3aedc011194135493948f141729e36a8c7.zip
Fix init to allow all actions
Diffstat (limited to 'lib')
-rw-r--r--lib/stdlib/src/gen_statem.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/stdlib/src/gen_statem.erl b/lib/stdlib/src/gen_statem.erl
index b1d99e2e14..eb0d6bd742 100644
--- a/lib/stdlib/src/gen_statem.erl
+++ b/lib/stdlib/src/gen_statem.erl
@@ -677,9 +677,9 @@ enter(Module, Opts, State, Data, Server, Actions, Parent) ->
NewDebug = ?sys_debug(Debug, {Name,State}, {enter,Event,State}),
case call_callback_mode(S) of
#state{} = NewS ->
- loop_event_actions(
+ loop_event_actions_list(
Parent, NewDebug, NewS,
- Events, Event, State, Data, #trans_opts{},
+ Events, Event, State, Data, false,
NewActions, CallEnter);
[Class,Reason,Stacktrace] ->
terminate(
@@ -1295,7 +1295,7 @@ parse_actions_next_event(
next_events_r = [{Type,Content}|NextEventsR]});
_ ->
[error,
- {bad_action_from_state_function,{next_events,Type,Content}},
+ {bad_action_from_state_function,{next_event,Type,Content}},
?STACKTRACE(),
?not_sys_debug]
end;
@@ -1312,7 +1312,7 @@ parse_actions_next_event(
next_events_r = [{Type,Content}|NextEventsR]});
_ ->
[error,
- {bad_action_from_state_function,{next_events,Type,Content}},
+ {bad_action_from_state_function,{next_event,Type,Content}},
?STACKTRACE(),
Debug]
end.