[downloader] Make sure timeout is not None

Hopefully fixes #22
This commit is contained in:
derrod 2020-05-05 16:01:25 +02:00
parent 0e86791237
commit 9f7133362c

View file

@ -29,7 +29,7 @@ class DLWorker(Process):
self.shm = SharedMemory(name=shm)
self.log_level = logging.getLogger().level
self.logging_queue = logging_queue
self.dl_timeout = dl_timeout
self.dl_timeout = float(dl_timeout) if dl_timeout else 10.0
def run(self):
# we have to fix up the logger before we can start