Skip to content

Commit

Permalink
update messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
electrovir committed Nov 18, 2023
1 parent 9f5ebee commit f769607
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/browser-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"scripts": {
"compile": "virmator compile",
"debug": "node --inspect-brk -r ts-node/register src/cli/cli.ts",
"start": "echo \"See ./logs/ for output.\" && ts-node src/cli/cli.ts",
"start": "echo \"See ./.not-committed/logs/ for output.\" && ts-node src/cli/cli.ts",
"start:built": "npm run compile && node dist/cli/cli.js",
"test": "virmator test",
"test:types": "tsc --noEmit"
Expand Down
6 changes: 4 additions & 2 deletions packages/browser-runner/src/servers/thumbnail-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,10 @@ export async function startThumbnailCluster(
try {
addExitCallback(() => {
log.warn(`Closing server on worker ${worker.id}, process ${worker.process.pid}`);
server.closeAllConnections();
server.close();
try {
server.closeAllConnections();
server.close();
} catch (error) {}
});

log.info(`Spawning express cluster worker ${worker.id}, process ${worker.process.pid}`);
Expand Down

0 comments on commit f769607

Please sign in to comment.