From e9207055d5c103a8977c9dab66e035571efba563 Mon Sep 17 00:00:00 2001 From: Evert Prants Date: Wed, 23 Oct 2019 17:25:34 +0300 Subject: [PATCH] why am i so f***ing stupid --- src/player.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/player.js b/src/player.js index 7867212..4e17ec8 100644 --- a/src/player.js +++ b/src/player.js @@ -90,7 +90,7 @@ function handleWebSocket () { return } - if (!live) return + if (!live || ws) return ws = new WebSocket(`ws${location.protocol.indexOf('s') !== -1 ? 's' : ''}://${location.host}`) ws.onerror = function(e) {