Skip to content

Commit

Permalink
fix: killing the process hangs issue (#172)
Browse files Browse the repository at this point in the history
Ensure quick shutdown when browsers are holding open a connection.

Fixes: #120
  • Loading branch information
helio-frota authored Feb 14, 2023
1 parent 3daf323 commit 3ac8b9d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ async function runServer(file) {
}
ON_DEATH(_ => {
server.close();
process.exit(0);
});
} catch (error) {
console.error(`⛔ ${error}`);
Expand Down

0 comments on commit 3ac8b9d

Please sign in to comment.