diff --git a/src/node/handler/PadMessageHandler.js b/src/node/handler/PadMessageHandler.js index f01e90533..0dd325e46 100644 --- a/src/node/handler/PadMessageHandler.js +++ b/src/node/handler/PadMessageHandler.js @@ -144,15 +144,16 @@ exports.handleDisconnect = function(client) */ exports.handleMessage = function(client, message) { - if(message == null) { - messageLogger.warn("Message is null!"); return; } if(!message.type) { - messageLogger.warn("Message has no type attribute!"); + return; + } + if(!sessioninfos[client.id]) { + messageLogger.warn("Dropped message from an unknown connection.") return; }