diff options
author | Rickard Green <rickard@erlang.org> | 2021-04-27 17:44:49 +0200 |
---|---|---|
committer | Rickard Green <rickard@erlang.org> | 2021-04-27 18:42:06 +0200 |
commit | 0e37e492aa527dcbebf3bbb805dc10ed072b4021 (patch) | |
tree | aa99574e4df8e237d89e528d5188b5ed0e8e6266 /lib/stdlib/src/gen_fsm.erl | |
parent | 0ab8930521a1404f26ea677eadd5694caf5e0d38 (diff) | |
download | erlang-0e37e492aa527dcbebf3bbb805dc10ed072b4021.tar.gz |
Prepare gen calls for extra data in tag also when using aliases
Diffstat (limited to 'lib/stdlib/src/gen_fsm.erl')
-rw-r--r-- | lib/stdlib/src/gen_fsm.erl | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/stdlib/src/gen_fsm.erl b/lib/stdlib/src/gen_fsm.erl index 9ff58584eb..afd9fe8e16 100644 --- a/lib/stdlib/src/gen_fsm.erl +++ b/lib/stdlib/src/gen_fsm.erl @@ -564,12 +564,8 @@ from({'$gen_sync_all_state_event', From, _Event}) -> From; from(_) -> undefined. %% Send a reply to the client. -reply({To, [alias|Alias] = Tag}, Reply) when is_pid(To), is_reference(Alias) -> - Alias ! {Tag, Reply}, - ok; -reply({To, Tag}, Reply) -> - catch To ! {Tag, Reply}, - ok. +reply(From, Reply) -> + gen:reply(From, Reply). reply(Name, From, Reply, Debug, StateName) -> reply(From, Reply), |