Skip to content

Commit

Permalink
exit gracefully (#1356)
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorking authored Mar 7, 2024
1 parent b690206 commit 5bd587f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rtl.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,16 @@ import { Config } from './backend/utils/config.js'; // Follow sequence to set se
import { WSServer } from './backend/utils/webSocketServer.js';
import App from './backend/utils/app.js';


const logger = Logger;
const common = Common;
const wsServer = WSServer;
const app = new App();

process.on('SIGINT', () => {
process.exit();
});

const onError = (error) => {
if (error.syscall !== 'listen') { throw error; }
switch (error.code) {
Expand Down

0 comments on commit 5bd587f

Please sign in to comment.