mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-01 21:07:59 +08:00
fix(timeouts): Wait 5 mintues before hanging up /send
This commit is contained in:
parent
063c2098c3
commit
155af462a9
2 changed files with 2 additions and 0 deletions
|
@ -227,6 +227,7 @@ class AccountSettingsPage extends React.Component
|
|||
EdgehillAPI.request
|
||||
path: "/connect/nylas"
|
||||
method: "POST"
|
||||
timeout: 30000
|
||||
body: json
|
||||
success: (json) =>
|
||||
OnboardingActions.accountJSONReceived(json)
|
||||
|
|
|
@ -60,6 +60,7 @@ class SendDraftTask extends Task
|
|||
accountId: @draft.accountId
|
||||
method: 'POST'
|
||||
body: body
|
||||
timeout: 1000 * 60 * 5 # We cannot hang up a send - won't know if it sent
|
||||
returnsModel: false
|
||||
|
||||
.then (json) =>
|
||||
|
|
Loading…
Reference in a new issue