Do not call the same function twice

This commit is contained in:
Evgeny Khramtsov 2019-07-06 10:21:01 +03:00
parent 756adaba55
commit 61a58f6e67
1 changed files with 0 additions and 1 deletions

View File

@ -514,7 +514,6 @@ route_to_room(Packet, ServerHost) ->
Err = xmpp:err_item_not_found(ErrText, Lang),
ejabberd_router:route_error(Packet, Err);
StartType ->
RMod = gen_mod:ram_db_mod(ServerHost, ?MODULE),
case load_room(RMod, Host, ServerHost, Room) of
error when StartType == start ->
case check_create_room(ServerHost, Host, Room, From) of