fix random death

main v1.4.4
Ayush Mukherjee 4 years ago
parent 52d3b33bef
commit fd4cbd01e0

@ -38,7 +38,7 @@ const handleMsg = async (msg, id) => {
dm.event = 'streams:full'
dm.data = await crud[channel].getAllPop()
}
connections[id].connection.send(JSON.stringify(dm))
connections[id]?.connection?.send(JSON.stringify(dm))
} else if (d.hasOwnProperty('event') && channelEvents.indexOf(d.event) !== -1) {
const ev = d.event.split(':')
const channel = ev[0]

Loading…
Cancel
Save