diff --git a/youtube_dl_gui/downloadmanager.py b/youtube_dl_gui/downloadmanager.py index 5e7d9a8..5c1db24 100644 --- a/youtube_dl_gui/downloadmanager.py +++ b/youtube_dl_gui/downloadmanager.py @@ -111,6 +111,9 @@ class DownloadManager(Thread): # Close all the workers for worker in self._workers: worker.close() + + # Join and collect + for worker in self._workers: worker.join() self._successful += worker.successful @@ -148,8 +151,6 @@ class DownloadManager(Thread): """ self._talk_to_gui('closing') self._running = False - for worker in self._workers: - worker.stop_download() def add_url(self, url): """Add given url to the urls_list.