Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit dfbbdc8

Browse filesBrowse files
author
Ben Newman
committed
Use setImmediate instead of process.nextTick in shell-server.js.
Since process.nextTick fires before IO events, it doesn't give the server much chance to make progress starting up.
1 parent f963a36 commit dfbbdc8
Copy full SHA for dfbbdc8

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎tools/static-assets/server/shell-server.js

Copy file name to clipboardExpand all lines: tools/static-assets/server/shell-server.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ exports.listen = function listen(shellDir) {
3131
hooks.push(callback);
3232
} else {
3333
// As a fallback, just call the callback asynchronously.
34-
process.nextTick(callback);
34+
setImmediate(callback);
3535
}
3636
}
3737
};

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.