Permalink
Browse files

Improved error handling

  • Loading branch information...
REBELinBLUE committed Nov 24, 2016
1 parent 69f828f commit db06749889cf422e21186c14548bb9cdc6909c5f
Showing with 1 addition and 1 deletion.
  1. +1 −1 socket.js
View
@@ -86,7 +86,7 @@ redis.psubscribe('*', function(err, count) {
redis.on('pmessage', function(subscribed, channel, message) {
message = JSON.parse(message);
- if (message.event) {
+ if (typeof message.event !== 'undefined') {
if (message.event.indexOf('RestartSocketServer') !== -1) {
if (debug) {
console.log('Restart command received');

0 comments on commit db06749

Please sign in to comment.