Skip to content

Commit

Permalink
Added a flash message if the getMeetings call times out (bigbluebutto…
Browse files Browse the repository at this point in the history
  • Loading branch information
farhatahmad authored Oct 26, 2020
1 parent 3880e93 commit 68716bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/controllers/admins_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,13 @@ def server_rooms
@order_column = params[:column] && params[:direction] != "none" ? params[:column] : "status"
@order_direction = params[:direction] && params[:direction] != "none" ? params[:direction] : "DESC"

meetings = all_running_meetings[:meetings]
begin
meetings = all_running_meetings[:meetings]
rescue
flash[:alert] = I18n.t("administrator.rooms.timeout")
meetings = []
end

@order_column = "created_at" if meetings.empty?
@running_room_bbb_ids = meetings.pluck(:meetingID)

Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ en:
enabled: Always Enabled
optional: Optional
rooms:
timeout: Due to the BigBlueButton Server request timing out, the information for status and participants may not be accurate
title: Server Rooms
table:
ended: "Ended: %{session}"
Expand Down

0 comments on commit 68716bc

Please sign in to comment.