diff --git a/iot_device.go b/iot_device.go index da71aa7..b4e1bb2 100644 --- a/iot_device.go +++ b/iot_device.go @@ -269,7 +269,7 @@ ENDFOR: } downloadFlag := CreateHttpClient().DownloadFile(filename, device.fileUrls[filename+FileActionDownload]) - if downloadFlag { + if !downloadFlag { glog.Errorf("down load file { %s } failed", filename) return false }