mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-01 02:25:45 +08:00
Allow sync after errors with env var
This commit is contained in:
parent
14cffcf8a5
commit
ca0120a824
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ class SyncWorker {
|
|||
syncNow() {
|
||||
clearTimeout(this._syncTimer);
|
||||
|
||||
if (this._account.errored()) {
|
||||
if (!process.env.SYNC_AFTER_ERRORS && this._account.errored()) {
|
||||
console.log(`SyncWorker: Account ${this._account.emailAddress} is in error state - Skipping sync`)
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue