why am i so f***ing stupid

This commit is contained in:
Evert Prants 2019-10-23 17:25:34 +03:00
parent 4580ac3556
commit e9207055d5
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
1 changed files with 1 additions and 1 deletions

View File

@ -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) {