Skip to content

Commit

Permalink
Don't crash on duplicate bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesaimonetti committed Mar 26, 2021
1 parent 7c774a2 commit 7650e1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/kazoo_events/src/kz_hooks_util.erl
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ all_registered_rr() ->
-spec maybe_add_hook(tuple()) -> 'true'.
maybe_add_hook(Hook) ->
maybe_add_binding(Hook),
'true' = gproc:reg(Hook).
'true' = gproc:ensure_reg(Hook).

-spec maybe_add_binding(tuple()) -> 'ok'.
maybe_add_binding(?HOOK_REG) ->
Expand Down

0 comments on commit 7650e1d

Please sign in to comment.