Map socket comm
This commit is contained in:
@@ -9,6 +9,7 @@ const public_routes = require('./app/routes/public_routes');
|
||||
const private_routes = require('./app/routes/private_routes');
|
||||
|
||||
const logger = require("./app/utils/logger.util.js");
|
||||
const map_socket = require("./app/utils/socket.util.js");
|
||||
|
||||
const app = express();
|
||||
var shutting_down = false;
|
||||
@@ -77,7 +78,8 @@ process.on("SIGINT", () => {
|
||||
*/
|
||||
function shutdown() {
|
||||
shutting_down = true;
|
||||
|
||||
map_socket.closeSocket();
|
||||
|
||||
server.close(() => {
|
||||
logger.info("Shutting down server.");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user