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.
mike/downloader/conn-pooling
Mike Lang 6 years ago committed by Christopher Usher
parent 3042d00516
commit 47ff92b155

@ -321,6 +321,7 @@ class StreamWorker(object):
# We successfully got the playlist at least once # We successfully got the playlist at least once
first = False first = False
self.manager.mark_working(self)
# Start any new segment getters # Start any new segment getters
date = None # tracks date in case some segment doesn't include it date = None # tracks date in case some segment doesn't include it

Loading…
Cancel
Save