Optimize code
This commit is contained in:
parent
8803d3353c
commit
9a5239ab1d
1 changed files with 2 additions and 2 deletions
|
@ -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__
|
||||||
|
|
Loading…
Reference in a new issue