Skip to content

Commit

Permalink
socket: fix flush event parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Aug 10, 2012
1 parent 2715851 commit b948f85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ Socket.prototype.flush = function () {
if ('closed' != this.readyState && this.transport.writable
&& this.writeBuffer.length) {
debug('flushing buffer to transport');
this.emit('flush', this);
this.emit('flush', this.writeBuffer);
this.server.emit('flush', this, this.writeBuffer);
this.transport.send(this.writeBuffer);
this.writeBuffer = [];
Expand Down

0 comments on commit b948f85

Please sign in to comment.