Skip to content

Commit

Permalink
suppress error for removing socket
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jun 28, 2023
1 parent 3b7b90d commit e74885f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dev/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ async function killWorker(worker: NitroWorker, nitro: Nitro) {
worker.worker = null;
}
if (worker.address.socketPath && existsSync(worker.address.socketPath)) {
await fsp.rm(worker.address.socketPath);
await fsp.rm(worker.address.socketPath).catch(() => {});
}
}

Expand Down

0 comments on commit e74885f

Please sign in to comment.