close websockets so the server doesnt hang when trying to shutdown

merge-requests/208/head
fatchan 5 years ago
parent 22565435ac
commit 6aa406fc29
  1. 2
      server.js

@ -115,7 +115,7 @@ const express = require('express')
process.on('SIGINT', () => {
console.log('SIGINT SIGNAL RECEIVED');
// Stops the server from accepting new connections and finishes existing connections.
server.close((err) => {
Socketio.io.close((err) => {
// if error, log and exit with error (1 code)
console.log('CLOSING SERVER');
if (err) {

Loading…
Cancel
Save