mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-04 08:10:55 +00:00
fix: command panic before resolve resource (#451)
This commit is contained in:
1 file changed
+3
@@ -65,6 +65,9 @@ var (
|
||||
|
||||
func printProgress(task *download.Task, title string) {
|
||||
var rate float64
|
||||
if task.Meta.Res == nil {
|
||||
task = emptyTask
|
||||
}
|
||||
if task.Meta.Res.Size <= 0 {
|
||||
rate = 0
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user