aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2016-04-27 13:58:07 +0200
committerRaimo Niskanen <[email protected]>2016-04-27 13:58:07 +0200
commit3c39afdc491dff6b90f5fff7d699850d5b2e112f (patch)
treef2a1ab15c7939eeb95d84c851adf7eb34f266d32 /lib/stdlib/src
parent840afcb34d7f3bcd9349bbf6834c95352334a274 (diff)
downloadotp-3c39afdc491dff6b90f5fff7d699850d5b2e112f.tar.gz
otp-3c39afdc491dff6b90f5fff7d699850d5b2e112f.tar.bz2
otp-3c39afdc491dff6b90f5fff7d699850d5b2e112f.zip
Fix callback mode after code change not used
Diffstat (limited to 'lib/stdlib/src')
-rw-r--r--lib/stdlib/src/gen_statem.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/stdlib/src/gen_statem.erl b/lib/stdlib/src/gen_statem.erl
index 36476b56ae..ffb6e4babc 100644
--- a/lib/stdlib/src/gen_statem.erl
+++ b/lib/stdlib/src/gen_statem.erl
@@ -639,7 +639,10 @@ system_code_change(
{NewCallbackMode,NewState,NewData} ->
callback_mode(NewCallbackMode) orelse
error({callback_mode,NewCallbackMode}),
- {ok,S#{state := NewState, data := NewData}};
+ {ok,
+ S#{callback_mode := NewCallbackMode,
+ state := NewState,
+ data := NewData}};
{ok,_} = Error ->
error({case_clause,Error});
Error ->