Fix websocket being closed by the server when it shouldn't

This commit is contained in:
Chrystian Huot 2020-06-02 08:53:15 -04:00
parent 707d07ab80
commit 66c2b270e0

View file

@ -436,7 +436,7 @@ class Controller {
}
socket.liveFeed = (call) => {
if (socket.isAlive) {
if (socket.readyState !== 3) {
if (call.system in socket.scope && call.system in message[1]) {
if (socket.scope[call.system].includes(call.talkgroup)) {
if (message[1][call.system] && message[1][call.system][call.talkgroup]) {