We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ca7e2d commit 01fde2aCopy full SHA for 01fde2a
main.js
@@ -84,7 +84,7 @@ async function onLoad(plugin) {
84
valueEncoding: "json"
85
});
86
87
- db.open();
+ db.open();
88
89
ipcMain.handle("LiteLoader.anti_recall.clearDb", async (event, message) => {
90
dialog
@@ -118,6 +118,7 @@ async function onLoad(plugin) {
118
e.toString(),
119
", retrying..."
120
);
121
+ await db.open();
122
await loadDb();
123
})
124
.catch((e) => {
@@ -127,11 +128,11 @@ async function onLoad(plugin) {
127
128
", stop load."
129
130
- }, 50);
131
+ }, 100);
132
- app.on("quit", () => {
133
+ app.on("quit", async () => {
134
output("Closing db...");
- db.close();
135
+ await db.close();
136
137
}
138
0 commit comments