1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-11 13:18:11 +09:00
This commit is contained in:
syuilo 2018-07-14 11:55:36 +09:00
parent 356fe8180e
commit c937cb94f9

View File

@ -19,7 +19,6 @@ import MachineInfo from './misc/machineInfo';
import DependencyInfo from './misc/dependencyInfo';
import serverStats from './daemons/server-stats';
import notesStats from './daemons/notes-stats';
import db from './db/mongodb';
import loadConfig from './config/load';
import { Config } from './config/types';
@ -191,6 +190,4 @@ process.on('uncaughtException', err => {
// Dying away...
process.on('exit', code => {
Logger.info(`The process is going to exit with code ${code}`);
db.close();
});