Error check to prevent exception from Cipher
This commit is contained in:
parent
523989a21c
commit
ccaadaad45
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue