1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-05 19:42:11 +02:00

Use list_to_existing_atom/1 wherever possible

This commit is contained in:
Evgeny Khramtsov 2019-06-15 15:14:45 +03:00
parent 31050f5b09
commit e84391a6a9
5 changed files with 5 additions and 5 deletions

View file

@ -194,7 +194,7 @@ code_change(_OldVsn, State, _Extra) ->
%%%===================================================================
get_mod() ->
Backend = ejabberd_option:cluster_backend(),
list_to_atom("ejabberd_cluster_" ++ atom_to_list(Backend)).
list_to_existing_atom("ejabberd_cluster_" ++ atom_to_list(Backend)).
rpc_timeout() ->
ejabberd_option:rpc_timeout().