90: missed this in switch to byte buffer in last commit

Reviewed-by: kinsleyw
This commit is contained in:
akhil 2013-11-25 16:47:19 -08:00
parent 940e0ab530
commit 29a42d5492

View File

@ -233,7 +233,7 @@
Pipe.prototype.writeBuffer = function(message) {
if (message._impl) message = message._impl; // unwrap if necessary
var wrapper = {bytes: message.underlying().length};
var wrapper = {bytes: message.underlying().capacity()};
this._writeWrappers.push(wrapper);
this._pipe.write(message.underlying());
return wrapper;