mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
fix: init db failed
This commit is contained in:
parent
e1d47f55bf
commit
239cf18887
@ -1,10 +1,10 @@
|
||||
{
|
||||
"manifest_version": 4,
|
||||
"type": "extension",
|
||||
"name": "LLOneBot v3.13.1",
|
||||
"name": "LLOneBot v3.13.2",
|
||||
"slug": "LLOneBot",
|
||||
"description": "LiteLoaderQQNT的OneBotApi",
|
||||
"version": "3.13.1",
|
||||
"version": "3.13.2",
|
||||
"thumbnail": "./icon.png",
|
||||
"authors": [
|
||||
{
|
||||
|
@ -24,9 +24,9 @@ class DBUtil {
|
||||
new Promise((resolve, reject) => {
|
||||
const initDB = () => {
|
||||
initCount++;
|
||||
if (initCount > 50) {
|
||||
return reject("init db fail")
|
||||
}
|
||||
// if (initCount > 50) {
|
||||
// return reject("init db fail")
|
||||
// }
|
||||
|
||||
try {
|
||||
if (!selfInfo.uin) {
|
||||
@ -38,7 +38,7 @@ class DBUtil {
|
||||
console.log("llonebot init db success")
|
||||
resolve(null)
|
||||
} catch (e) {
|
||||
// console.log("init db fail", e.stack.toString())
|
||||
console.log("init db fail", e.stack.toString())
|
||||
setTimeout(initDB, 300);
|
||||
}
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export const version = "3.13.1"
|
||||
export const version = "3.13.2"
|
Loading…
x
Reference in New Issue
Block a user