mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-10 10:11:25 +08:00
fix(task-queue): Rename the task queue file to avoid upgrade issues
This commit is contained in:
parent
faa1dd6190
commit
d28af3075e
1 changed files with 2 additions and 2 deletions
|
@ -205,7 +205,7 @@ class TaskQueue
|
||||||
|
|
||||||
_restoreQueueFromDisk: =>
|
_restoreQueueFromDisk: =>
|
||||||
try
|
try
|
||||||
queueFile = path.join(atom.getConfigDirPath(), 'task-queue.json')
|
queueFile = path.join(atom.getConfigDirPath(), 'pending-tasks.json')
|
||||||
queue = Utils.deserializeRegisteredObjects(fs.readFileSync(queueFile))
|
queue = Utils.deserializeRegisteredObjects(fs.readFileSync(queueFile))
|
||||||
|
|
||||||
# We need to set the processing bit back to false so it gets
|
# We need to set the processing bit back to false so it gets
|
||||||
|
@ -223,7 +223,7 @@ class TaskQueue
|
||||||
# items, they can easily process 1000 tasks at the same moment. We can't try to
|
# items, they can easily process 1000 tasks at the same moment. We can't try to
|
||||||
# save 1000 times! (Do not remove debounce without a plan!)
|
# save 1000 times! (Do not remove debounce without a plan!)
|
||||||
@_saveDebounced ?= _.debounce =>
|
@_saveDebounced ?= _.debounce =>
|
||||||
queueFile = path.join(atom.getConfigDirPath(), 'task-queue.json')
|
queueFile = path.join(atom.getConfigDirPath(), 'pending-tasks.json')
|
||||||
queueJSON = Utils.serializeRegisteredObjects((@_queue ? []))
|
queueJSON = Utils.serializeRegisteredObjects((@_queue ? []))
|
||||||
fs.writeFile(queueFile, queueJSON)
|
fs.writeFile(queueFile, queueJSON)
|
||||||
, 150
|
, 150
|
||||||
|
|
Loading…
Reference in a new issue