From 140547d035f8aa0779844e926a7b82d154965c39 Mon Sep 17 00:00:00 2001 From: joshua-arts Date: Fri, 1 Jun 2018 21:30:11 -0400 Subject: [PATCH] shorten is_running? --- app/models/room.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/models/room.rb b/app/models/room.rb index e4c8c6c8..019e8c4e 100644 --- a/app/models/room.rb +++ b/app/models/room.rb @@ -22,12 +22,7 @@ class Room < ApplicationRecord # Checks if a room is running on the BigBlueButton server. def is_running? - begin - bbb.get_meeting_info(bbb_id, nil) - return true - rescue BigBlueButton::BigBlueButtonException => exc - return false - end + bbb.is_meeting_running?(bbb_id) end # Determines the invite URL for the room.