mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-25 22:16:49 +08:00
fix(downloads): Download.run must resolve with self
This commit is contained in:
parent
4a2d0a64f6
commit
0ea3aca625
1 changed files with 2 additions and 2 deletions
|
@ -68,9 +68,9 @@ class Download
|
|||
return if @request
|
||||
|
||||
if @state is State.Finished
|
||||
resolve()
|
||||
resolve(@) # Note: we must resolve with this
|
||||
else if @state is State.Failed
|
||||
reject()
|
||||
reject(@)
|
||||
|
||||
@state = State.Downloading
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue