| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d18a67f commit 49e6f33
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,9 +14,10 @@ const server = createServer(common.mustCall((req, res) => { | |||
| 14 | 14 | onGC(req, { ongc: common.mustCall(() => { server.close(); }) }); | |
| 15 | 15 | req.resume(); | |
| 16 | 16 | req.on('end', common.mustCall(() => { | |
| 17 | - setImmediate(() => { | ||
| 17 | + setImmediate(async () => { | ||
| 18 | 18 | client.end(); | |
| 19 | - global.gc(); | ||
| 19 | + await global.gc({ type: 'major', execution: 'async' }); | ||
| 20 | + await global.gc({ type: 'major', execution: 'async' }); | ||
| 20 | 21 | }); | |
| 21 | 22 | })); | |
| 22 | 23 | res.end('hello world'); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments