[bbb-greenlight: 11/39] Added back join retry as fallback (#2095)
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bbb-greenlight: 11/39] Added back join retry as fallback (#2095)
- Date: Thu, 15 Oct 2020 07:11:22 +0000 (UTC)
commit 7309ef9bfd2eeff22d7d8b1517278ce3d2c251e4
Author: Ahmad Farhat <ahmad af farhat gmail com>
Date: Thu Sep 17 14:19:18 2020 -0400
Added back join retry as fallback (#2095)
app/assets/javascripts/wait.js | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/app/assets/javascripts/wait.js b/app/assets/javascripts/wait.js
index 6df0f09..dd659c9 100644
--- a/app/assets/javascripts/wait.js
+++ b/app/assets/javascripts/wait.js
@@ -51,8 +51,12 @@ $(document).on("turbolinks:load", function(){
var join_attempts = 0;
-var request_to_join_meeting = function(){
- $.post(window.location.pathname, { join_name: $(".background").attr("join-name") })
+function request_to_join_meeting() {
+ $.post(window.location.pathname, { join_name: $(".background").attr("join-name") }, function() {
+ //Successful post - set up retry incase
+ if(join_attempts < 4){ setTimeout(request_to_join_meeting, 10000); }
+ join_attempts++;
+ })
}
// Refresh the page after 2 mins and attempt to reconnect to ActionCable
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]