Skip to content

Commit f9d6d6a

Browse files
Merge pull request #689 from mozilla/hotfix/688
hotfix PR #688
2 parents 10dfc4e + fe68338 commit f9d6d6a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/ret/hub.ex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,13 +655,15 @@ defmodule Ret.Hub do
655655
host = RoomAssigner.get_available_host(hub.host)
656656

657657
if host && host != hub.host do
658-
hub |> changeset_for_new_host(host) |> Repo.update!()
658+
updated_hub = hub |> changeset_for_new_host(host) |> Repo.update!()
659659

660660
RetWeb.Endpoint.broadcast("hub:" <> hub.hub_sid, "host_changed", %{
661661
host: host,
662662
port: Hub.janus_port(),
663663
turn: Hub.generate_turn_info()
664664
})
665+
666+
updated_hub
665667
else
666668
hub
667669
end

0 commit comments

Comments
 (0)