Mailspring/packages/local-sync/src/shared
Halla Moore 77ad25af24 [local-sync] Stop sync worker before deleting account database
Summary:
Various errors are thrown when the sync worker tries accessing
a database that we've already deleted, so make sure the sync
worker has been stopped before we remove the database. This diff
involves modifying `Interruptible` so that `interrupt()` returns
a promise that resolves once the interrupt has been completed.

Addresses T7472

Test Plan: manual

Reviewers: evan, juan

Reviewed By: evan, juan

Differential Revision: https://phab.nylas.com/D3679
2017-01-15 10:33:12 -08:00
..
database-extensions.js [local-sync] Increment streamAll offset by chunkSize (#5) 2016-12-09 11:15:04 -08:00
imap-paths-utils.js fix(tracking): Save updated metadata correctly and stop sending account ID with request 2016-12-19 15:40:38 -08:00
interruptible.js [local-sync] Stop sync worker before deleting account database 2017-01-15 10:33:12 -08:00
local-database-connector.js [local-sync] For generic IMAP, Thread based on Message-Id, In-Reply-To & References 2017-01-13 10:39:54 -08:00
logger.es6 [local-sync] only enable logging in dev mode of N1 2016-12-02 17:34:05 -05:00
message-factory.js [local-sync] fix comment 2017-01-14 13:31:24 -08:00
transaction-connector.js [local-sync] fix unnecessary transaction JSON parse and binding issue 2016-11-23 13:43:00 -08:00
utils.js [local-sync] Port generic IMAP threading logic from Python Sync Engine 2017-01-07 13:11:33 -08:00