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,
|
"manifest_version": 4,
|
||||||
"type": "extension",
|
"type": "extension",
|
||||||
"name": "LLOneBot v3.13.1",
|
"name": "LLOneBot v3.13.2",
|
||||||
"slug": "LLOneBot",
|
"slug": "LLOneBot",
|
||||||
"description": "LiteLoaderQQNT的OneBotApi",
|
"description": "LiteLoaderQQNT的OneBotApi",
|
||||||
"version": "3.13.1",
|
"version": "3.13.2",
|
||||||
"thumbnail": "./icon.png",
|
"thumbnail": "./icon.png",
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
|
@ -24,9 +24,9 @@ class DBUtil {
|
|||||||
new Promise((resolve, reject) => {
|
new Promise((resolve, reject) => {
|
||||||
const initDB = () => {
|
const initDB = () => {
|
||||||
initCount++;
|
initCount++;
|
||||||
if (initCount > 50) {
|
// if (initCount > 50) {
|
||||||
return reject("init db fail")
|
// return reject("init db fail")
|
||||||
}
|
// }
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (!selfInfo.uin) {
|
if (!selfInfo.uin) {
|
||||||
@ -38,7 +38,7 @@ class DBUtil {
|
|||||||
console.log("llonebot init db success")
|
console.log("llonebot init db success")
|
||||||
resolve(null)
|
resolve(null)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// console.log("init db fail", e.stack.toString())
|
console.log("init db fail", e.stack.toString())
|
||||||
setTimeout(initDB, 300);
|
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