mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
net_uv: fix test/simple/test-pipe-file-to-http.js
This commit is contained in:
parent
35d0df919a
commit
4f03f1bead
@ -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');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user