Do you use any threads? If not, that is the problem, because the progress bar's GUI is freezing until the download tasks completes. You need to create two threads:
- one for running the download...