Refactor globalApi.ts to add sleep function for saving database
This commit is contained in:
@@ -332,6 +332,7 @@ export async function saveDb(){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
let savetrys = 0
|
let savetrys = 0
|
||||||
|
await sleep(1000)
|
||||||
while(true){
|
while(true){
|
||||||
try {
|
try {
|
||||||
if(changed){
|
if(changed){
|
||||||
|
|||||||
Reference in New Issue
Block a user