Skip to content

Commit

Permalink
Improved error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
REBELinBLUE committed Nov 24, 2016
1 parent 69f828f commit db06749
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit db06749

Please sign in to comment.