Permalink
Browse files

Fix crash when using UNIX socket (#9036)

  • Loading branch information...
Gomasy authored and Gargron committed Oct 21, 2018
1 parent bf58461 commit 8d70d3de3842cd079484b8e683516ff291de7e24
Showing with 1 addition and 2 deletions.
  1. +1 −2 streaming/index.js
@@ -642,9 +642,8 @@ const startWorker = (workerId) => {
const attachServerWithConfig = (server, onSuccess) => {
if (process.env.SOCKET || process.env.PORT && isNaN(+process.env.PORT)) {
server.listen(process.env.SOCKET || process.env.PORT, () => {
fs.chmodSync(server.address(), 0o666);
if (onSuccess) {
fs.chmodSync(server.address(), 0o666);
onSuccess(server.address());
}
});

0 comments on commit 8d70d3d

Please sign in to comment.