Shutdown the DB on exit
This commit is contained in:
parent
631afe7ed4
commit
dc767d3155
1 changed files with 3 additions and 0 deletions
|
|
@ -1,3 +1,6 @@
|
||||||
|
import { database } from "$/main";
|
||||||
|
|
||||||
export function cleanExit() {
|
export function cleanExit() {
|
||||||
|
database.shutdown();
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
};
|
};
|
||||||
Loading…
Add table
Add a link
Reference in a new issue