Browse Source

net: callback to socket.write should always be called asynchronously

v0.7.4-release
Eric Lovett 13 years ago
committed by Ben Noordhuis
parent
commit
f9fec3a2d6
  1. 4
      lib/net.js

4
lib/net.js

@ -464,7 +464,9 @@ Socket.prototype._writeOut = function(data, encoding, fd, cb) {
if (queuedData) {
return false;
} else {
if (cb) cb();
if (cb) {
process.nextTick(cb);
}
return true;
}
}

Loading…
Cancel
Save