From 61a58f6e670bbf8de9e65ee5e4351d0ac3762c4e Mon Sep 17 00:00:00 2001 From: Evgeny Khramtsov Date: Sat, 6 Jul 2019 10:21:01 +0300 Subject: [PATCH] Do not call the same function twice --- src/mod_muc.erl | 1 - 1 file changed, 1 deletion(-) diff --git a/src/mod_muc.erl b/src/mod_muc.erl index 41da5b5c4..6f6330d2c 100644 --- a/src/mod_muc.erl +++ b/src/mod_muc.erl @@ -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 -- 2.40.0