mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-21 22:54:11 +08:00
fix(cursor): Remove stale cursor from config.cson when cursor error
- #2049
This commit is contained in:
parent
fbd77fb5f6
commit
04cebd51f2
1 changed files with 1 additions and 0 deletions
|
@ -111,6 +111,7 @@ class NylasLongConnection
|
|||
res.on 'data', (chunk) =>
|
||||
if chunk.toString().indexOf('Invalid cursor') > 0
|
||||
error = new Error('Delta Connection: Cursor is invalid. Need to blow away local cache.')
|
||||
NylasEnv.config.removeAtKeyPath("nylas.#{@_account.id}.cursor")
|
||||
DatabaseStore._handleSetupError(error)
|
||||
@close()
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue