mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-24 18:13:42 +01:00
Fix crash when using UNIX socket (#9036)
This commit is contained in:
parent
bf58461d36
commit
8d70d3de38
1 changed files with 1 additions and 2 deletions
|
@ -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());
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue