Skip to content

Commit f266bfd

Browse files
Wait for progress bars
1 parent 4cbe61f commit f266bfd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

download.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ func startCliDownload(url string, contentLength int64, outputFile *os.File) {
4141
workerId++
4242
}
4343
waitGroup.Wait()
44+
progressContainer.Wait()
4445
downloading = false
4546
activeWorkers = 0
46-
time.Sleep(1 * time.Second)
4747
fmt.Println("Your file has been successfully downloaded!")
4848
}
4949

0 commit comments

Comments
 (0)