From 9901904d2aca930b3f71700e6dff4b09a1df0222 Mon Sep 17 00:00:00 2001 From: Zachary Chai Date: Fri, 17 Mar 2017 15:07:20 -0400 Subject: [PATCH] handle ending meeting when it doesn't exist --- app/controllers/bbb_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/bbb_controller.rb b/app/controllers/bbb_controller.rb index ea93b172..feb778dc 100644 --- a/app/controllers/bbb_controller.rb +++ b/app/controllers/bbb_controller.rb @@ -126,7 +126,7 @@ class BbbController < ApplicationController load_and_authorize_room_owner! bbb_res = bbb_end_meeting "#{@user.encrypted_id}-#{params[:id]}" - if bbb_res[:returncode] + if bbb_res[:returncode] || bbb_res[:status] == :not_found EndMeetingJob.perform_later(@user.encrypted_id, params[:id]) end render_bbb_response bbb_res