diff options
author | David Banham <david@banham.id.au> | 2013-03-11 09:15:11 +1100 |
---|---|---|
committer | David Banham <david@banham.id.au> | 2013-03-11 09:25:26 +1100 |
commit | ccaadaad45348cda17da6c11adf301ed3b22ca25 (patch) | |
tree | 5052a7b8d8e168676bcf2d1129894d1fc3d52281 /plugin | |
parent | 523989a21c40ff5943cbd3ba1d78b11272fa4a0d (diff) | |
download | fosdem-2018-presentation-ccaadaad45348cda17da6c11adf301ed3b22ca25.tar fosdem-2018-presentation-ccaadaad45348cda17da6c11adf301ed3b22ca25.tar.gz |
Error check to prevent exception from Cipher
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/multiplex/index.js | 1 |
1 files changed, 1 insertions, 0 deletions
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); |