Skip to content

Commit

Permalink
Error check to prevent exception from Cipher
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbanham committed Mar 10, 2013
1 parent 523989a commit ccaadaa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugin/multiplex/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ccaadaa

Please sign in to comment.