aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src
diff options
context:
space:
mode:
authorErlang/OTP <[email protected]>2018-03-21 18:33:11 +0100
committerErlang/OTP <[email protected]>2018-03-21 18:33:11 +0100
commit80728176e894980aa425b1197c41647e25aa3274 (patch)
tree615b3e86861bbe81dc83b156f8f9b6d96179b474 /lib/stdlib/src
parent0f2ead7bedeedc852db2deeeaa0e9e096bba8c0f (diff)
parent57b6fd27292e1c80e8e443991b9a24d3f8ad92eb (diff)
downloadotp-80728176e894980aa425b1197c41647e25aa3274.tar.gz
otp-80728176e894980aa425b1197c41647e25aa3274.tar.bz2
otp-80728176e894980aa425b1197c41647e25aa3274.zip
Merge branch 'raimo/stdlib/fix-gen_statem-init-actions-check/OTP-13995' into maint-20
* raimo/stdlib/fix-gen_statem-init-actions-check/OTP-13995: Test event insert from init Fix init to allow all actions
Diffstat (limited to 'lib/stdlib/src')
-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.