mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-12 02:58:20 +08:00
e1f1b22ee2
Summary: Specifically, these imap connections have been known to hang when you close your laptop or go offline/online, even though we are passing a `socketTimeout` to node-imap. When they hang, everything freezes because the promise waiting for the result never resolves. `_createConnectionPromise` wraps the operations with a timeout we implemented ourselves, and correctly rejects on timeout. This commit wraps other imap operations that were missing. (I notices because I encountered the hanging on one of these operations) Test Plan: manual Reviewers: evan, mark, spang Reviewed By: spang Differential Revision: https://phab.nylas.com/D3720 |
||
---|---|---|
.. | ||
src | ||
index.js | ||
package.json |