mirror of
https://github.com/tickstep/aliyunpan.git
synced 2025-02-02 21:27:15 +08:00
fix download zero file error
This commit is contained in:
parent
117a4f73db
commit
6669b64027
@ -286,6 +286,12 @@ func (der *Downloader) checkLoadBalancers() *LoadBalancerResponseList {
|
||||
func (der *Downloader) Execute() error {
|
||||
der.lazyInit()
|
||||
|
||||
// zero file, no need to download data
|
||||
if der.fileInfo.FileSize == 0 {
|
||||
cmdutil.Trigger(der.onFinishEvent)
|
||||
return nil
|
||||
}
|
||||
|
||||
var (
|
||||
loadBalancerResponseList = der.checkLoadBalancers()
|
||||
bii *transfer.DownloadInstanceInfo
|
||||
|
Loading…
Reference in New Issue
Block a user