diff --git a/lib/socket.js b/lib/socket.js index d9807f6dd2..dcbd43811b 100644 --- a/lib/socket.js +++ b/lib/socket.js @@ -365,5 +365,9 @@ Socket.prototype.emit = function (ev) { packet.args = args; - return this.packet(packet); + try { + return this.packet(packet); + } catch(e) { + return null; + } };