Skip to content

Commit

Permalink
Update lib/socket.js
Browse files Browse the repository at this point in the history
  • Loading branch information
xdenser committed Nov 30, 2012
1 parent 80036cc commit a6a2ff8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/socket.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/*!
* socket.io-node
* Copyright(c) 2011 LearnBoost <[email protected]>
Expand Down Expand Up @@ -358,7 +357,7 @@ Socket.prototype.emit = function (ev) {

if ('function' == typeof lastArg) {
packet.id = ++this.ackPackets;
packet.ack = lastArg.length ? 'data' : true;
packet.ack = 'data';
this.acks[packet.id] = lastArg;
args = args.slice(0, args.length - 1);
}
Expand Down

0 comments on commit a6a2ff8

Please sign in to comment.