Skip to content

Commit f17c5a3

Browse files
authored
Merge pull request #4476 from ChaosKid42/fix_preload_rooms_with_sql
fix preload_rooms in case of SQL-DB
2 parents 18110f2 + b9a161b commit f17c5a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/mod_muc.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,8 @@ unhibernate_room(ServerHost, Host, Room, ResetHibernationTime) ->
603603
RMod = gen_mod:ram_db_mod(ServerHost, ?MODULE),
604604
case RMod:find_online_room(ServerHost, Room, Host) of
605605
error ->
606-
case RMod:restore_room(ServerHost, Host, Room) of
606+
Mod = gen_mod:db_mod(ServerHost, ?MODULE),
607+
case Mod:restore_room(ServerHost, Host, Room) of
607608
error ->
608609
{error, notfound};
609610
{error, _} = Err ->

0 commit comments

Comments
 (0)