Fixed restore of corrupted queue
This commit is contained in:
parent
73ae96c555
commit
c02ddfbc9f
@ -234,6 +234,11 @@ export class DeemixApp {
|
|||||||
do {
|
do {
|
||||||
currentUUID = this.queueOrder.shift() || ''
|
currentUUID = this.queueOrder.shift() || ''
|
||||||
} while (this.queue[currentUUID] === undefined && this.queueOrder.length)
|
} while (this.queue[currentUUID] === undefined && this.queueOrder.length)
|
||||||
|
if (this.queue[currentUUID] === undefined) {
|
||||||
|
fs.writeFileSync(configFolder + `queue${sep}order.json`, JSON.stringify(this.queueOrder))
|
||||||
|
this.currentJob = null
|
||||||
|
return null
|
||||||
|
}
|
||||||
this.queue[currentUUID].status = 'downloading'
|
this.queue[currentUUID].status = 'downloading'
|
||||||
const currentItem: any = JSON.parse(fs.readFileSync(configFolder + `queue${sep}${currentUUID}.json`).toString())
|
const currentItem: any = JSON.parse(fs.readFileSync(configFolder + `queue${sep}${currentUUID}.json`).toString())
|
||||||
let downloadObject: any
|
let downloadObject: any
|
||||||
|
2
webui
2
webui
@ -1 +1 @@
|
|||||||
Subproject commit 6d5c52eabf960f86f8a4abe1d9654f619b0fbb81
|
Subproject commit 283bb5fa0df7042c78919f64c1c6638996ca6ac8
|
Loading…
Reference in New Issue
Block a user