From 6426fc3d10b20ba5e934c23cd15033ab3275a4b3 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Wed, 30 Oct 2019 22:54:26 -0700 Subject: [PATCH] Remove constant connect handler --- webapp/titanembeds/static/js/embed.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/webapp/titanembeds/static/js/embed.js b/webapp/titanembeds/static/js/embed.js index ddb478a..e17093e 100644 --- a/webapp/titanembeds/static/js/embed.js +++ b/webapp/titanembeds/static/js/embed.js @@ -2132,12 +2132,7 @@ }); socket.on("disconnect", function () { - setTimeout(function () { - if (socket) { - socket = null; - initiate_websockets(); - } - }, 500); + }); socket.on("revoke", function () {