From ccaadaad45348cda17da6c11adf301ed3b22ca25 Mon Sep 17 00:00:00 2001 From: David Banham Date: Mon, 11 Mar 2013 09:15:11 +1100 Subject: [PATCH] Error check to prevent exception from Cipher --- plugin/multiplex/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/multiplex/index.js b/plugin/multiplex/index.js index 0b03fc7..35df8e3 100644 --- a/plugin/multiplex/index.js +++ b/plugin/multiplex/index.js @@ -15,6 +15,7 @@ var opts = { io.sockets.on('connection', function(socket) { socket.on('slidechanged', function(slideData) { + if (typeof slideData.secret == 'undefined' || slideData.secret == null || slideData.secret === '') return; if (createHash(slideData.secret) === slideData.socketId) { slideData.secret = null; socket.broadcast.emit(slideData.socketId, slideData); -- 2.26.2