net_uv: fix test/simple/test-pipe-file-to-http.js

This commit is contained in:
Ryan Dahl 2011-08-10 13:27:05 -07:00
parent 35d0df919a
commit 4f03f1bead

View File

@ -378,6 +378,8 @@ function afterWrite(status, handle, req, buffer) {
assert.equal(req, req_);
if (self._writeRequests.length == 0) {
// TODO remove all uses of ondrain - this is not a good hack.
if (self.ondrain) self.ondrain();
self.emit('drain');
}