Optimize code

This commit is contained in:
croneter 2018-12-21 15:37:16 +01:00
parent 8803d3353c
commit 9a5239ab1d

View file

@ -615,8 +615,8 @@ class DownloadGen(object):
start=self.current + (self.cache_factor - 1) * CONTAINERSIZE) start=self.current + (self.cache_factor - 1) * CONTAINERSIZE)
return child return child
app.APP.monitor.waitForAbort(0.1) app.APP.monitor.waitForAbort(0.1)
if not len(self.pending_counter) and not len(self.xml): if not self.pending_counter and not len(self.xml):
raise StopIteration raise StopIteration()
LOG.debug('Waiting for download to finish') LOG.debug('Waiting for download to finish')
next = __next__ next = __next__