mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-10-03 09:54:54 +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
|
return if @request
|
||||||
|
|
||||||
if @state is State.Finished
|
if @state is State.Finished
|
||||||
resolve()
|
resolve(@) # Note: we must resolve with this
|
||||||
else if @state is State.Failed
|
else if @state is State.Failed
|
||||||
reject()
|
reject(@)
|
||||||
|
|
||||||
@state = State.Downloading
|
@state = State.Downloading
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue