| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7ae7124 commit 1e3aed0
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -38,7 +38,7 @@ fs.readFile(loc, common.mustCall((err, data) => { | |||
| 38 | 38 | function maybeClose() { | |
| 39 | 39 | if (--remaining === 0) { | |
| 40 | 40 | server.close(); | |
| 41 | - client.destroy(); | ||
| 41 | + client.shutdown(); | ||
| 42 | 42 | } | |
| 43 | 43 | } | |
| 44 | 44 | ||
@@ -47,7 +47,7 @@ fs.readFile(loc, common.mustCall((err, data) => { | |||
| 47 | 47 | req.resume(); | |
| 48 | 48 | req.on('end', common.mustCall(maybeClose)); | |
| 49 | 49 | const str = fs.createReadStream(loc); | |
| 50 | - str.on('end', common.mustCall(maybeClose)); | ||
| 50 | + req.on('finish', common.mustCall(maybeClose)); | ||
| 51 | 51 | str.pipe(req); | |
| 52 | 52 | })); | |
| 53 | 53 | })); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments