Emit stream_closed even if stream is not found

This commit is contained in:
advplyr 2021-09-01 19:39:38 -05:00
parent c5bc865e6c
commit 3c854ca32b
6 changed files with 10 additions and 9 deletions

View file

@ -92,6 +92,7 @@ class StreamManager {
var client = socket.sheepClient
if (!client || !client.stream) {
Logger.error('No stream for client', client.user.id)
client.socket.emit('stream_closed', 'n/a')
return
}
// var streamId = client.stream.id