@bobfrankston/mailx 1.0.127 → 1.0.128
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -502,7 +502,13 @@ export class ImapManager extends EventEmitter {
|
|
|
502
502
|
return; // Prevent concurrent syncs
|
|
503
503
|
this.syncing = true;
|
|
504
504
|
try {
|
|
505
|
-
await
|
|
505
|
+
await Promise.race([
|
|
506
|
+
this._syncAll(),
|
|
507
|
+
new Promise((_, reject) => setTimeout(() => reject(new Error("Global sync timeout (10min)")), 600000))
|
|
508
|
+
]);
|
|
509
|
+
}
|
|
510
|
+
catch (e) {
|
|
511
|
+
console.error(` syncAll error: ${e.message}`);
|
|
506
512
|
}
|
|
507
513
|
finally {
|
|
508
514
|
this.syncing = false;
|