Skip to content

Commit

Permalink
Fix unsaved buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrec committed Oct 17, 2012
1 parent bd8c260 commit 1882c48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/methods_stream.js
Expand Up @@ -22,7 +22,7 @@ Atok.prototype.write = function (data) {
if (typeof data === 'string') {
this.buffer += this._stringDecoder.write(data)
} else {
this.buffer.concat(data)
this.buffer = this.buffer.concat(data)
// this.buffer = Buffer.concat( [ this.buffer, data ], this.length )
}
} else {
Expand Down

0 comments on commit 1882c48

Please sign in to comment.