From 47ff92b155faddc1e29e8ad75c3c76beab537792 Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Sun, 6 Jan 2019 22:15:41 -0800 Subject: [PATCH] downloader: Fix bug where mark_working wasn't called This meant that old workers would never shut down, causing us to fetch the same media playlist and same segments multiple times for no reason, and to never give up in face of (non-403/404) errors even once we have something else working. --- downloader/downloader/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/downloader/downloader/main.py b/downloader/downloader/main.py index f54ba41..1d98606 100644 --- a/downloader/downloader/main.py +++ b/downloader/downloader/main.py @@ -321,6 +321,7 @@ class StreamWorker(object): # We successfully got the playlist at least once first = False + self.manager.mark_working(self) # Start any new segment getters date = None # tracks date in case some segment doesn't include it