From 49e2c3039aa02801bc8a7fea513c2fb1ca5cb49d Mon Sep 17 00:00:00 2001 From: Naoyuki Kanezawa Date: Sun, 7 Jul 2013 23:28:28 +0900 Subject: [PATCH] consider the case when packet.id is 0 --- lib/socket.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/socket.js b/lib/socket.js index 7e13a6125..8fd0dfd14 100644 --- a/lib/socket.js +++ b/lib/socket.js @@ -220,7 +220,7 @@ Socket.prototype.onevent = function(packet){ var args = packet.data || []; debug('emitting event %j', args); - if (packet.id) { + if (null != packet.id) { debug('attaching ack callback to event'); args.push(this.ack(packet.id)); }