Extra check on incoming messages.

This commit is contained in:
perroned 2014-10-03 10:32:14 -07:00
parent f66b2e8f26
commit 9baeb15927

View File

@ -64,7 +64,7 @@ class Meteor.RedisPubSub
"presentation_cursor_updated_message" # just because it's common. we handle it anyway
]
if message.header? and message.payload?
if message?.header? and message?.payload?
unless message.header.name in ignoredEventTypes
console.log "eventType=" + message.header.name #+ "\n"
console.log jsonMsg