Fix getting age of newly created rooms in rooms_unused_*

This commit is contained in:
Paweł Chmielowski 2020-12-14 09:46:38 +01:00
parent a76531b90b
commit a9ed26e484
1 changed files with 1 additions and 1 deletions

View File

@ -893,7 +893,7 @@ decide_room(unused, {_Room_name, _Host, ServerHost, Room_pid}, Last_allowed) ->
{0, 0};
Pid when is_pid(Pid) ->
case mod_muc_room:get_state(Room_pid) of
#state{just_created = JD, users = U} ->
{ok, #state{just_created = JD, users = U}} ->
{JD, maps:size(U)};
_ ->
{0, 0}