Skip to content
Snippets Groups Projects
Commit c937cb94 authored by syuilo's avatar syuilo
Browse files

Clean up

parent 356fe818
No related branches found
No related tags found
No related merge requests found
......@@ -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();
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment