From e227c02931a7c4254de4f4cb0c99722c76dad3ca Mon Sep 17 00:00:00 2001 From: steven1046 Date: Thu, 8 Nov 2018 11:27:23 -0600 Subject: [PATCH] Add 1s wait between polls --- src/main/webapp/js/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/webapp/js/main.js b/src/main/webapp/js/main.js index 06c8795..937bfee 100644 --- a/src/main/webapp/js/main.js +++ b/src/main/webapp/js/main.js @@ -61,7 +61,9 @@ $(document).ready(function() { deferred.reject(); } else { - return pollForTranscript(id, num_tries); + setTimeout(function(){ + return pollForTranscript(id, num_tries); + }, 1000); } } });